Searched refs:kLemmaIdSize (Results 1 - 4 of 4) sorted by relevance

/packages/inputmethods/PinyinIME/jni/include/
H A Ddictdef.h66 const size_t kLemmaIdSize = 3; // Actually, a Id occupies 3 bytes in storage. member in namespace:ime_pinyin
H A Dsearchutility.h33 size_t id:(kLemmaIdSize * 8);
/packages/inputmethods/PinyinIME/jni/share/
H A Ddictbuilder.cpp601 dict_trie->lma_idx_buf_ = new unsigned char[lma_idx_num * kLemmaIdSize];
606 dict_trie->lma_idx_buf_len_ = lma_idx_num * kLemmaIdSize;
615 id_to_charbuf(dict_trie->lma_idx_buf_ + pos * kLemmaIdSize,
623 id_to_charbuf(dict_trie->lma_idx_buf_ + pos * kLemmaIdSize, idx);
642 for (size_t pos = 0; pos < kLemmaIdSize; pos++) {
H A Ddicttrie.cpp97 for (uint16 pos = kLemmaIdSize - 1; pos > 0; pos--)
98 id = (id << 8) + lma_idx_buf_[id_offset * kLemmaIdSize + pos];
99 id = (id << 8) + lma_idx_buf_[id_offset * kLemmaIdSize];
192 total_lma_num_ = lma_idx_buf_len_ / kLemmaIdSize;
919 size_t top_lmas_id_offset = lma_idx_buf_len_ / kLemmaIdSize - top_lmas_num_;

Completed in 30 milliseconds