Home
last modified time | relevance | path

Searched refs:spelling_str (Results 1 – 3 of 3) sorted by relevance

/OK3568_Linux_fs/app/forlinx/flapp/src/keyboard/pinyin/share/
H A Dspellingtable.cpp80 size_t SpellingTable::get_hash_pos(const char* spelling_str) { in get_hash_pos() argument
83 if ('\0' == spelling_str[pos]) in get_hash_pos()
85 hash_pos += (size_t)spelling_str[pos]; in get_hash_pos()
137 bool SpellingTable::put_spelling(const char* spelling_str, double freq) { in put_spelling() argument
138 if (frozen_ || NULL == spelling_str) in put_spelling()
142 if (strcmp(spelling_str, kNotSupportList[pos]) == 0) { in put_spelling()
149 size_t hash_pos = get_hash_pos(spelling_str); in put_spelling()
153 if (strncmp(raw_spellings_[hash_pos].str, spelling_str, in put_spelling()
163 spelling_str, spelling_size_ - 1) == 0) { in put_spelling()
170 strncpy(raw_spellings_[hash_pos].str, spelling_str, spelling_size_ - 1); in put_spelling()
[all …]
/OK3568_Linux_fs/app/forlinx/flapp/src/keyboard/pinyin/include/
H A Dspellingtable.h66 size_t get_hash_pos(const char* spelling_str);
85 bool put_spelling(const char* spelling_str, double spl_count);
90 bool contain(const char* spelling_str);
/OK3568_Linux_fs/app/forlinx/DWKeyboard/include/pinyin/include/
H A Dspellingtable.h66 size_t get_hash_pos(const char* spelling_str);
85 bool put_spelling(const char* spelling_str, double spl_count);
90 bool contain(const char* spelling_str);