[−][src]Function sensitive_words_recognizer::replace_sensitive_word
pub fn replace_sensitive_word(
txt: &str,
match_type: &MatchType,
replace_char: char
) -> String
替换敏感字字符
Examples
let result = rust_by_example::dfa::replace_sensitive_word("信用卡之家", &MatchType::MinMatchType, '*') assert_eq!(result,"**卡之家");