replace_sensitive_word

Function replace_sensitive_word 

Source
pub fn replace_sensitive_word(
    txt: &str,
    match_type: &MatchType,
    replace_char: char,
) -> String
Expand description

替换敏感字字符

§Examples

let result = rust_by_example::dfa::replace_sensitive_word("信用卡之家", &MatchType::MinMatchType, '*')
assert_eq!(result,"**卡之家");