Searched refs:kMaxLemmaSize (Results 1 – 15 of 15) sorted by relevance
| /OK3568_Linux_fs/app/forlinx/flapp/src/keyboard/pinyin/share/ |
| H A D | dictlist.cpp | 35 assert(kMaxLemmaSize == 8); in DictList() 156 for (size_t i = last_hz_len; i <= kMaxLemmaSize; i++) { in calculate_size() 166 return start_pos_[kMaxLemmaSize]; in calculate_size() 196 assert(current_pos == start_pos_[kMaxLemmaSize]); in fill_list() 197 assert(id_num == start_id_[kMaxLemmaSize]); in fill_list() 288 if (!initialized_ || id_lemma >= start_id_[kMaxLemmaSize] || NULL == str_buf in get_lemma_str() 293 for (uint16 i = 0; i < kMaxLemmaSize; i++) { in get_lemma_str() 349 if (NULL == str || str_len > kMaxLemmaSize) in get_lemma_id() 383 if (NULL == buf_ || 0 == start_pos_[kMaxLemmaSize] || in save_list() 390 if (fwrite(start_pos_, sizeof(uint32), kMaxLemmaSize + 1, fp) != in save_list() [all …]
|
| H A D | dictbuilder.cpp | 188 scis_num_ = lemma_num_ * kMaxLemmaSize; in alloc_resource() 414 if (lemma_size > kMaxLemmaSize) { in read_raw_dict() 700 if (NULL == scis_ || lemma_num_ * kMaxLemmaSize > scis_num_) in build_scis() 773 if (level >= kMaxLemmaSize || item_end <= item_start) in construct_subset() 799 assert(level < kMaxLemmaSize); in construct_subset() 1005 memset(max_sonbuf_len_, 0, sizeof(size_t) * kMaxLemmaSize); in stat_init() 1006 memset(max_homobuf_len_, 0, sizeof(size_t) * kMaxLemmaSize); in stat_init() 1007 memset(total_son_num_, 0, sizeof(size_t) * kMaxLemmaSize); in stat_init() 1008 memset(total_node_hasson_, 0, sizeof(size_t) * kMaxLemmaSize); in stat_init() 1009 memset(total_sonbuf_num_, 0, sizeof(size_t) * kMaxLemmaSize); in stat_init() [all …]
|
| H A D | matrixsearch.cpp | 646 char16 s[kMaxLemmaSize + 1]; in get_candidate() 650 s_len = get_lemma_str(id, s, kMaxLemmaSize + 1); in get_candidate() 680 char16 word_str[kMaxLemmaSize + 1]; in add_lma_to_userdict() 681 uint16 spl_ids[kMaxLemmaSize]; in add_lma_to_userdict() 694 kMaxLemmaSize + 1 - spl_id_fr); in add_lma_to_userdict() 705 assert(spl_id_fr <= kMaxLemmaSize); in add_lma_to_userdict() 741 static_cast<uint16>(kMaxLemmaSize)) { in try_add_cand0_to_userdict() 1081 if ((!dmi_c_phrase_ && prev_ids_num >= kMaxLemmaSize) || in add_char_qwerty() 1156 uint16 lma_size_max = kMaxLemmaSize; in prepare_candidates() 1164 char16 fullsent[kMaxLemmaSize + 1]; in prepare_candidates() [all …]
|
| H A D | dicttrie.cpp | 664 if (splid_str_len > kMaxLemmaSize) in get_lpis() 854 char16 lma_str[kMaxLemmaSize + 1]; in get_lemma_splids() 855 uint16 lma_len = get_lemma_str(id_lemma, lma_str, kMaxLemmaSize + 1); in get_lemma_splids() 858 uint16 spl_mtrx[kMaxLemmaSize * 5]; in get_lemma_splids() 859 uint16 spl_start[kMaxLemmaSize + 1]; in get_lemma_splids() 871 kMaxLemmaSize * 5 - spl_start[pos]); in get_lemma_splids() 907 if (NULL == lemma_str || lemma_len > kMaxLemmaSize) in get_lemma_id() 926 kMaxLemmaSize - 1) == 0) { in predict_top_lmas()
|
| H A D | userdict.cpp | 1404 uint16 j, sig_len = kMaxLemmaSize / 4; in _get_lpis() 1434 uint16 sig_len = kMaxLemmaSize / 4; in _get_lpis() 1461 uint16 j, sig_len = kMaxLemmaSize / 4; in _get_lpis() 1486 uint16 sig_len = kMaxLemmaSize / 4; in _get_lpis() 1778 uint16 splid[kMaxLemmaSize]; in _get_lpis() 1797 if (kMaxLemmaSize < splid_len) { in _get_lpis() 1802 py16, py16_len, splid, NULL, kMaxLemmaSize, is_pre); in _get_lpis()
|
| /OK3568_Linux_fs/app/forlinx/flapp/src/keyboard/pinyin/include/ |
| H A D | dictbuilder.h | 73 size_t max_sonbuf_len_[kMaxLemmaSize]; 74 size_t max_homobuf_len_[kMaxLemmaSize]; 76 size_t total_son_num_[kMaxLemmaSize]; 77 size_t total_node_hasson_[kMaxLemmaSize]; 78 size_t total_sonbuf_num_[kMaxLemmaSize]; 79 size_t total_sonbuf_allnoson_[kMaxLemmaSize]; 80 size_t total_node_in_sonbuf_allnoson_[kMaxLemmaSize]; 81 size_t total_homo_num_[kMaxLemmaSize];
|
| H A D | dictdef.h | 43 const size_t kMaxLemmaSize = 8; variable 62 const size_t kMaxPredictSize = (kMaxLemmaSize - 1); 143 char16 hanzi_str[kMaxLemmaSize + 1]; 146 uint16 hanzi_scis_ids[kMaxLemmaSize]; 148 uint16 spl_idx_arr[kMaxLemmaSize + 1]; 149 char pinyin_str[kMaxLemmaSize][kMaxPinyinSize + 1];
|
| H A D | userdict.h | 244 uint16 splid_start[kMaxLemmaSize]; 245 uint16 splid_count[kMaxLemmaSize]; 247 uint32 signature[kMaxLemmaSize / 4]; 257 static const int kUserDictMissCacheSize = kMaxLemmaSize - 1; 260 uint32 signatures[kUserDictMissCacheSize][kMaxLemmaSize / 4]; 262 } miss_caches_[kMaxLemmaSize]; 265 uint32 signatures[kUserDictCacheSize][kMaxLemmaSize / 4]; 270 } caches_[kMaxLemmaSize];
|
| H A D | dictlist.h | 45 uint32 start_pos_[kMaxLemmaSize + 1]; 47 uint32 start_id_[kMaxLemmaSize + 1]; 49 int (*cmp_func_[kMaxLemmaSize])(const void *, const void *);
|
| H A D | searchutility.h | 44 char16 str[kMaxLemmaSize + 1];
|
| /OK3568_Linux_fs/app/forlinx/DWKeyboard/include/pinyin/include/ |
| H A D | dictbuilder.h | 73 size_t max_sonbuf_len_[kMaxLemmaSize]; 74 size_t max_homobuf_len_[kMaxLemmaSize]; 76 size_t total_son_num_[kMaxLemmaSize]; 77 size_t total_node_hasson_[kMaxLemmaSize]; 78 size_t total_sonbuf_num_[kMaxLemmaSize]; 79 size_t total_sonbuf_allnoson_[kMaxLemmaSize]; 80 size_t total_node_in_sonbuf_allnoson_[kMaxLemmaSize]; 81 size_t total_homo_num_[kMaxLemmaSize];
|
| H A D | dictdef.h | 43 const size_t kMaxLemmaSize = 8; variable 62 const size_t kMaxPredictSize = (kMaxLemmaSize - 1); 143 char16 hanzi_str[kMaxLemmaSize + 1]; 146 uint16 hanzi_scis_ids[kMaxLemmaSize]; 148 uint16 spl_idx_arr[kMaxLemmaSize + 1]; 149 char pinyin_str[kMaxLemmaSize][kMaxPinyinSize + 1];
|
| H A D | userdict.h | 244 uint16 splid_start[kMaxLemmaSize]; 245 uint16 splid_count[kMaxLemmaSize]; 247 uint32 signature[kMaxLemmaSize / 4]; 257 static const int kUserDictMissCacheSize = kMaxLemmaSize - 1; 260 uint32 signatures[kUserDictMissCacheSize][kMaxLemmaSize / 4]; 262 } miss_caches_[kMaxLemmaSize]; 265 uint32 signatures[kUserDictCacheSize][kMaxLemmaSize / 4]; 270 } caches_[kMaxLemmaSize];
|
| H A D | dictlist.h | 45 uint32 start_pos_[kMaxLemmaSize + 1]; 47 uint32 start_id_[kMaxLemmaSize + 1]; 49 int (*cmp_func_[kMaxLemmaSize])(const void *, const void *);
|
| H A D | searchutility.h | 44 char16 str[kMaxLemmaSize + 1];
|