Lines Matching refs:count

416     uint16 count = searchable->splid_count[i];
417 if (fullids[i] >= start_id && fullids[i] < start_id + count)
434 uint16 count = searchable->splid_count[i];
435 if (fullids[i] >= start_id && fullids[i] < start_id + count)
535 uint32 start, count;
536 bool cached = cache_hit(&searchable, &start, &count);
539 max_off = start + count;
601 count = middle - start;
602 cache_push(USER_DICT_CACHE, &searchable, start, count);
698 uint32 start, count;
699 bool cached = load_cache(&searchable, &start, &count);
702 max_off = start + count;
748 // aborts when lemma is found, and it never knows the count.
1014 // By default, no limitation for lemma count and size
1700 uint16 lemma_len, uint16 count, uint64 lmt) {
1706 id = _put_lemma(lemma_str, splids, lemma_len, count, lmt);
1808 char16 * str, int size, int * count) {
1810 *count = 0;
1907 (*count)++;
1970 // XXX Reclaim is only based on count, not size
1971 uint32 count = dict_info_.lemma_count;
1972 int rc = count * dict_info_.reclaim_ratio / 100;
2049 uint16 lemma_len, uint16 count) {
2050 return _put_lemma(lemma_str, splids, lemma_len, count, time(NULL));
2054 uint16 lemma_len, uint16 count, uint64 lmt) {
2062 int delta_score = count - scores_[off];
2064 scores_[off] = build_score(lmt, count);
2097 LemmaIdType id = append_a_lemma(lemma_str, splids, lemma_len, count, lmt);
2141 int count = extract_score_freq(score);
2143 if (count + delta_count > kUserDictMaxFrequency ||
2144 count + delta_count < count) {
2145 delta_count = kUserDictMaxFrequency - count;
2147 count += delta_count;
2152 scores_[off] = build_score(lmt, count);
2171 void UserDict::set_total_lemma_count_of_others(size_t count) {
2172 total_other_nfreq_ = count;
2176 uint16 lemma_len, uint16 count, uint64 lmt) {
2191 scores_[off] = build_score(lmt, count);
2251 dict_info_.total_nfreq += count;