Skip to main content

highlight

Function highlight 

Source
pub fn highlight(text: &str, query: &str) -> Vec<(String, bool)>
Expand description

按忽略大小写的命中切分文本,true 段需要高亮。按字符比较,中文与西文都适用。