Searched refs:lemma_arr (Results 1 – 6 of 6) sorted by relevance
/packages/inputmethods/PinyinIME/jni/share/ |
D | dictlist.cpp | 87 const LemmaEntry *lemma_arr, size_t lemma_num) { in init_list() argument 88 if (NULL == scis || 0 == scis_num || NULL == lemma_arr || 0 == lemma_num) in init_list() 97 size_t buf_size = calculate_size(lemma_arr, lemma_num); in init_list() 107 fill_list(lemma_arr, lemma_num); in init_list() 113 size_t DictList::calculate_size(const LemmaEntry* lemma_arr, size_t lemma_num) { in calculate_size() argument 120 last_hz_len = lemma_arr[i].hz_str_len; in calculate_size() 123 assert(lemma_arr[0].idx_by_hz == 1); in calculate_size() 132 size_t current_hz_len = lemma_arr[i].hz_str_len; in calculate_size() 178 void DictList::fill_list(const LemmaEntry* lemma_arr, size_t lemma_num) { in fill_list() argument 181 utf16_strncpy(buf_, lemma_arr[0].hanzi_str, in fill_list() [all …]
|
D | ngram.cpp | 244 bool NGram::build_unigram(LemmaEntry *lemma_arr, size_t lemma_num, in build_unigram() argument 246 if (NULL == lemma_arr || 0 == lemma_num || next_idx_unused <= 1) in build_unigram() 258 if (lemma_arr[pos].idx_by_hz == idx_now) in build_unigram() 262 assert(lemma_arr[pos].idx_by_hz == idx_now); in build_unigram() 264 freqs[idx_now] = lemma_arr[pos].freq; in build_unigram()
|
D | dictbuilder.cpp | 770 bool DictBuilder::construct_subset(void* parent, LemmaEntry* lemma_arr, in construct_subset() argument 786 LemmaEntry *lma_current = lemma_arr + i; in construct_subset() 914 construct_subset(next_parent, lemma_arr, in construct_subset() 966 idx_buf[homo_pos] = lemma_arr[item_start_next + homo_pos].idx_by_hz; in construct_subset() 983 construct_subset(next_parent, lemma_arr, in construct_subset()
|
/packages/inputmethods/PinyinIME/jni/include/ |
D | dictlist.h | 57 size_t calculate_size(const LemmaEntry *lemma_arr, size_t lemma_num); 63 void fill_list(const LemmaEntry *lemma_arr, size_t lemma_num); 90 const LemmaEntry *lemma_arr, size_t lemma_num);
|
D | ngram.h | 90 bool build_unigram(LemmaEntry *lemma_arr, size_t num,
|
D | dictbuilder.h | 135 bool construct_subset(void* parent, LemmaEntry* lemma_arr,
|