• Home
  • Raw
  • Download

Lines Matching refs:i

373   uint32 i = 0;  in is_fuzzy_prefix_spell_id()  local
374 for (i = 0; i < searchable->splids_len; i++) { in is_fuzzy_prefix_spell_id()
375 const char py1 = *spl_trie.get_spelling_str(id1[i]); in is_fuzzy_prefix_spell_id()
376 uint16 off = 8 * (i % 4); in is_fuzzy_prefix_spell_id()
377 const char py2 = ((searchable->signature[i/4] & (0xff << off)) >> off); in is_fuzzy_prefix_spell_id()
393 uint32 i = 0; in fuzzy_compare_spell_id() local
394 for (i = 0; i < len1; i++) { in fuzzy_compare_spell_id()
395 const char py1 = *spl_trie.get_spelling_str(id1[i]); in fuzzy_compare_spell_id()
396 uint16 off = 8 * (i % 4); in fuzzy_compare_spell_id()
397 const char py2 = ((searchable->signature[i/4] & (0xff << off)) >> off); in fuzzy_compare_spell_id()
413 uint32 i = 0; in is_prefix_spell_id() local
414 for (; i < searchable->splids_len; i++) { 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()
417 if (fullids[i] >= start_id && fullids[i] < start_id + count) in is_prefix_spell_id()
431 uint32 i = 0; in equal_spell_id() local
432 for (; i < fulllen; i++) { 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()
435 if (fullids[i] >= start_id && fullids[i] < start_id + count) in equal_spell_id()
482 uint32 i = 0; in prepare_locate() local
483 for (; i < splid_str_len; i++) { in prepare_locate()
484 if (spl_trie.is_half_id(splid_str[i])) { in prepare_locate()
485 searchable->splid_count[i] = in prepare_locate()
486 spl_trie.half_to_full(splid_str[i], in prepare_locate()
487 &(searchable->splid_start[i])); in prepare_locate()
489 searchable->splid_count[i] = 1; in prepare_locate()
490 searchable->splid_start[i] = splid_str[i]; in prepare_locate()
492 const unsigned char py = *spl_trie.get_spelling_str(splid_str[i]); in prepare_locate()
493 searchable->signature[i>>2] |= (py << (8 * (i % 4))); in prepare_locate()
619 int i = 0; in _get_lpis() local
620 for (; i < m; i++) { in _get_lpis()
621 str_buf[i] = str[i]; in _get_lpis()
623 str_buf[i] = 0; in _get_lpis()
634 int i = 0; in _get_lpis() local
635 for (; i < nchar && i < splids_max; i++) in _get_lpis()
636 splids[i] = ids[i]; in _get_lpis()
637 return i; in _get_lpis()
731 uint32 i = 0; in _get_lpis() local
732 for (i = 0; i < lemma_len; i++) { in _get_lpis()
733 if (str[i] == lemma_str[i]) in _get_lpis()
737 if (i < lemma_len) { in _get_lpis()
918 uint32 i = 0; in _get_lpis() local
919 for (; i < dict_info_.sync_count; i++) { in _get_lpis()
920 unsigned int off = (syncs_[i] & kUserDictOffsetMask); in _get_lpis()
924 if (i < dict_info_.sync_count) { in _get_lpis()
925 syncs_[i] = syncs_[dict_info_.sync_count - 1]; in _get_lpis()
934 uint32 i = 0; in _get_lpis() local
935 for (; i < dict_info_.lemma_count; i++) { in _get_lpis()
936 unsigned int off = (predicts_[i] & kUserDictOffsetMask); in _get_lpis()
938 predicts_[i] |= kUserDictOffsetFlagRemove; in _get_lpis()
1110 size_t i; in _get_lpis() local
1193 for (i = 0; i < dict_info.lemma_count; i++) { in _get_lpis()
1194 ids[i] = start_id + i; in _get_lpis()
1195 offsets_by_id[i] = offsets[i]; in _get_lpis()
1369 uint16 i = cache->head; in _get_lpis() local
1373 if (cache->signatures[i][j] != searchable->signature[j]) in _get_lpis()
1377 i++; in _get_lpis()
1378 if (i >= kUserDictCacheSize) in _get_lpis()
1379 i -= kUserDictCacheSize; in _get_lpis()
1380 if (i == cache->tail) in _get_lpis()
1384 *offset = cache->offsets[i]; in _get_lpis()
1385 *length = cache->lengths[i]; in _get_lpis()
1426 uint16 i = cache->head; in _get_lpis() local
1430 if (cache->signatures[i][j] != searchable->signature[j]) in _get_lpis()
1434 i++; in _get_lpis()
1435 if (i >= kUserDictMissCacheSize) in _get_lpis()
1436 i -= kUserDictMissCacheSize; in _get_lpis()
1437 if (i == cache->tail) in _get_lpis()
1668 for (uint32 i = 0; i < dict_info_.lemma_count; i++) { in _get_lpis() local
1669 ids_[i] = start_id_ + i; in _get_lpis()
1670 offsets_by_id_[i] = offsets_[i]; in _get_lpis()
1822 uint32 i; in _get_lpis() local
1823 for (i = 0; i < dict_info_.sync_count; i++) { in _get_lpis()
1824 int offset = syncs_[i]; in _get_lpis()
1981 for (int i = 0; i < rc; i++) { in _get_lpis() local
1982 int s = scores_[i]; in _get_lpis()
1983 score_offset_pairs[i].score = s; in _get_lpis()
1984 score_offset_pairs[i].offset_index = i; in _get_lpis()
1987 for (int i = (rc + 1) / 2; i >= 0; i--) in _get_lpis() local
1988 shift_down(score_offset_pairs, i, rc); in _get_lpis()
1990 for (uint32 i = rc; i < dict_info_.lemma_count; i++) { in _get_lpis() local
1991 int s = scores_[i]; in _get_lpis()
1994 score_offset_pairs[0].offset_index = i; in _get_lpis()
1999 for (int i = 0; i < rc; i++) { in _get_lpis() local
2000 int off = score_offset_pairs[i].offset_index; in _get_lpis()
2011 inline void UserDict::swap(UserDictScoreOffsetPair * sop, int i, int j) { in _get_lpis() argument
2012 int s = sop[i].score; in _get_lpis()
2013 int p = sop[i].offset_index; in _get_lpis()
2014 sop[i].score = sop[j].score; in _get_lpis()
2015 sop[i].offset_index = sop[j].offset_index; in _get_lpis()
2020 void UserDict::shift_down(UserDictScoreOffsetPair * sop, int i, int n) { in _get_lpis() argument
2021 int par = i; in _get_lpis()
2184 for (size_t i = 0; i < lemma_len; i++) { in _get_lpis() local
2185 *((uint16*)&lemmas_[offset + 2 + (i << 1)]) = splids[i]; in _get_lpis()
2186 *((char16*)&lemmas_[offset + 2 + (lemma_len << 1) + (i << 1)]) in _get_lpis()
2187 = lemma_str[i]; in _get_lpis()
2209 size_t i = 0; in _get_lpis() local
2210 while (i < off) { in _get_lpis()
2211 offset = offsets_[i]; in _get_lpis()
2217 i++; in _get_lpis()
2219 if (i != off) { in _get_lpis()
2221 memmove(offsets_ + i + 1, offsets_ + i, (off - i) << 2); in _get_lpis()
2222 offsets_[i] = temp; in _get_lpis()
2225 memmove(scores_ + i + 1, scores_ + i, (off - i) << 2); in _get_lpis()
2226 scores_[i] = temp; in _get_lpis()
2229 memmove(ids_ + i + 1, ids_ + i, (off - i) << 2); in _get_lpis()
2230 ids_[i] = temp; in _get_lpis()