Lines Matching refs:uint16
119 uint16 lmt16 = (uint16)lmt; in build_score()
126 inline int64 UserDict::utf16le_atoll(uint16 *s, int len) { in utf16le_atoll()
132 const uint16 * endp = s + len; in utf16le_atoll()
147 inline int UserDict::utf16le_lltoa(int64 v, uint16 *s, int size) { in utf16le_lltoa()
150 uint16 *endp = s + size; in utf16le_lltoa()
158 uint16 *b = s; in utf16le_lltoa()
193 inline uint16 * UserDict::get_lemma_spell_ids(uint32 offset) { in get_lemma_spell_ids()
195 return (uint16 *)(lemmas_ + offset + 2); in get_lemma_spell_ids()
198 inline uint16 * UserDict::get_lemma_word(uint32 offset) { in get_lemma_word()
201 return (uint16 *)(lemmas_ + offset + 2 + (nchar << 1)); in get_lemma_word()
342 void UserDict::reset_milestones(uint16 from_step, MileStoneHandle from_handle) { in reset_milestones()
368 const uint16 * id1, uint16 len1, const UserDictSearchable *searchable) { in is_fuzzy_prefix_spell_id()
376 uint16 off = 8 * (i % 4); in is_fuzzy_prefix_spell_id()
386 const uint16 * id1, uint16 len1, const UserDictSearchable *searchable) { in fuzzy_compare_spell_id()
396 uint16 off = 8 * (i % 4); in fuzzy_compare_spell_id()
408 const uint16 * fullids, uint16 fulllen, in is_prefix_spell_id()
415 uint16 start_id = searchable->splid_start[i]; in is_prefix_spell_id()
416 uint16 count = searchable->splid_count[i]; in is_prefix_spell_id()
426 const uint16 * fullids, uint16 fulllen, in equal_spell_id()
433 uint16 start_id = searchable->splid_start[i]; in equal_spell_id()
434 uint16 count = searchable->splid_count[i]; in equal_spell_id()
455 const uint16 * splids = get_lemma_spell_ids(offset); in locate_first_in_offsets()
476 const uint16 *splid_str, in prepare_locate()
477 uint16 splid_str_len) { in prepare_locate()
497 size_t UserDict::get_lpis(const uint16 *splid_str, uint16 splid_str_len, in get_lpis()
502 size_t UserDict::_get_lpis(const uint16 *splid_str, in _get_lpis()
503 uint16 splid_str_len, LmaPsbItem *lpi_items, in _get_lpis()
570 uint16 * splids = get_lemma_spell_ids(offset); in _get_lpis()
609 uint16 UserDict::get_lemma_str(LemmaIdType id_lemma, char16* str_buf, in _get_lpis()
610 uint16 str_max) { in _get_lpis()
618 uint16 m = nchar < str_max -1 ? nchar : str_max - 1; in _get_lpis()
627 uint16 UserDict::get_lemma_splids(LemmaIdType id_lemma, uint16 *splids, in _get_lpis()
628 uint16 splids_max, bool arg_valid) { in _get_lpis()
633 const uint16 * ids = get_lemma_spell_ids(offset); in _get_lpis()
640 size_t UserDict::predict(const char16 last_hzs[], uint16 hzs_len, in _get_lpis()
646 int j = locate_first_in_predicts((const uint16*)last_hzs, hzs_len); in _get_lpis()
658 uint16 * words = get_lemma_word(offset); in _get_lpis()
659 uint16 * splids = get_lemma_spell_ids(offset); in _get_lpis()
690 int32 UserDict::locate_in_offsets(char16 lemma_str[], uint16 splid_str[], in _get_lpis()
691 uint16 lemma_len) { in _get_lpis()
721 uint16 * splids = get_lemma_spell_ids(offset); in _get_lpis()
730 uint16 * str = get_lemma_word(offset); in _get_lpis()
760 const uint16 * words, int lemma_len) { in _get_lpis()
771 const uint16 * ws = get_lemma_word(offset); in _get_lpis()
807 int32 UserDict::locate_first_in_predicts(const uint16 * words, int lemma_len) { in _get_lpis()
818 const uint16 * ws = get_lemma_word(offset); in _get_lpis()
856 LemmaIdType UserDict::get_lemma_id(char16 lemma_str[], uint16 splids[], in _get_lpis()
857 uint16 lemma_len) { in _get_lpis()
875 LmaScoreType UserDict::get_lemma_score(char16 lemma_str[], uint16 splids[], in _get_lpis()
876 uint16 lemma_len) { in _get_lpis()
891 uint16 * spl = get_lemma_spell_ids(offset); in _get_lpis()
892 uint16 * wrd = get_lemma_word(offset); in _get_lpis()
902 int UserDict::_get_lemma_score(char16 lemma_str[], uint16 splids[], in _get_lpis()
903 uint16 lemma_len) { in _get_lpis()
983 uint16 * spl = get_lemma_spell_ids(offset); in _get_lpis()
984 uint16 * wrd = get_lemma_word(offset); in _get_lpis()
1368 uint16 j, sig_len = kMaxLemmaSize / 4; in _get_lpis()
1369 uint16 i = cache->head; in _get_lpis()
1394 uint16 next = cache->tail; in _get_lpis()
1398 uint16 sig_len = kMaxLemmaSize / 4; in _get_lpis()
1399 uint16 j = 0; in _get_lpis()
1425 uint16 j, sig_len = kMaxLemmaSize / 4; in _get_lpis()
1426 uint16 i = cache->head; in _get_lpis()
1448 uint16 next = cache->tail; in _get_lpis()
1450 uint16 sig_len = kMaxLemmaSize / 4; in _get_lpis()
1451 uint16 j = 0; in _get_lpis()
1699 LemmaIdType UserDict::put_lemma_no_sync(char16 lemma_str[], uint16 splids[], in _get_lpis()
1700 uint16 lemma_len, uint16 count, uint64 lmt) { in _get_lpis()
1742 uint16 splid[kMaxLemmaSize]; in _get_lpis()
1826 uint16 *spl = get_lemma_spell_ids(offset); in _get_lpis()
1827 uint16 *wrd = get_lemma_word(offset); in _get_lpis()
2048 LemmaIdType UserDict::put_lemma(char16 lemma_str[], uint16 splids[], in _get_lpis()
2049 uint16 lemma_len, uint16 count) { in _get_lpis()
2053 LemmaIdType UserDict::_put_lemma(char16 lemma_str[], uint16 splids[], in _get_lpis()
2054 uint16 lemma_len, uint16 count, uint64 lmt) { in _get_lpis()
2136 uint16 * splids = get_lemma_spell_ids(offset); in _get_lpis()
2175 LemmaIdType UserDict::append_a_lemma(char16 lemma_str[], uint16 splids[], in _get_lpis()
2176 uint16 lemma_len, uint16 count, uint64 lmt) { in _get_lpis()
2185 *((uint16*)&lemmas_[offset + 2 + (i << 1)]) = splids[i]; in _get_lpis()
2213 uint16 * spl = get_lemma_spell_ids(offset); in _get_lpis()
2235 uint16 * words_new = get_lemma_word(predicts_[off]); in _get_lpis()