Skip to main content

wubi_phrase_code

Function wubi_phrase_code 

Source
pub fn wubi_phrase_code(
    word: &str,
    prefix: impl FnMut(char, usize) -> Option<String>,
) -> Option<Result<String, char>>
Expand description

为两个及以上汉字取词组码;回调必须返回该字所有最长全码一致的前缀。 无法取码时返回对应字,空串或单字返回 None。