pub(crate) fn replace_ignore_case( haystack: &str, from: &str, to: &str, ) -> String
大文字小文字を無視して from を to へすべて置換する(str::replace は大小文字を 区別するため使えない)。currentColor/currentcolor/CURRENTCOLOR 等の表記ゆれに対応する。
from
to
str::replace
currentColor
currentcolor
CURRENTCOLOR