Searched refs:spl_str (Results 1 – 6 of 6) sorted by relevance
359 const char* SpellingTrie::get_ym_str(const char *spl_str) { in get_ym_str() argument361 if (is_shengmu_char(*spl_str)) { in get_ym_str()362 if ('Z' == *spl_str || 'C' == *spl_str || 'S' == *spl_str) in get_ym_str()364 spl_str += 1; in get_ym_str()365 if (start_ZCS && 'h' == *spl_str) in get_ym_str()366 spl_str += 1; in get_ym_str()368 return spl_str; in get_ym_str()379 const char *spl_str = spelling_buf_ + spelling_size_ * pos; in build_ym_info() local380 spl_str = get_ym_str(spl_str); in build_ym_info()381 if ('\0' != spl_str[0]) { in build_ym_info()[all …]
661 void DictBuilder::format_spelling_str(char *spl_str) { in format_spelling_str() argument662 if (NULL == spl_str) in format_spelling_str()666 while ('\0' != spl_str[pos]) { in format_spelling_str()667 if (spl_str[pos] >= 'a' && spl_str[pos] <= 'z') in format_spelling_str()668 spl_str[pos] = spl_str[pos] - 'a' + 'A'; in format_spelling_str()670 if (1 == pos && 'H' == spl_str[pos]) { in format_spelling_str()671 if ('C' == spl_str[0] || 'S' == spl_str[0] || 'Z' == spl_str[0]) { in format_spelling_str()672 spl_str[pos] = 'h'; in format_spelling_str()
115 void format_spelling_str(char *spl_str);
143 const char* get_ym_str(const char *spl_str);