Skip to main content

replace_ignore_case

Function replace_ignore_case 

Source
pub(crate) fn replace_ignore_case(
    haystack: &str,
    from: &str,
    to: &str,
) -> String
Expand description

大文字小文字を無視して fromto へすべて置換する(str::replace は大小文字を 区別するため使えない)。currentColor/currentcolor/CURRENTCOLOR 等の表記ゆれに対応する。