Home | History | Annotate | Download | only in share

Lines Matching refs:pos

82   for (size_t pos = 0; pos < spelling_size_; pos++) {
83 if ('\0' == spelling_str[pos])
85 hash_pos += (size_t)spelling_str[pos];
141 for (size_t pos = 0; pos < kNotSupportNum; pos++) {
142 if (strcmp(spelling_str, kNotSupportList[pos]) == 0) {
227 for (size_t pos = 0; pos < spelling_num_; pos++) {
228 strncpy(spelling_buf_ + pos * spelling_size_, raw_spellings_[pos].str,
240 for (size_t pos = 0; pos < spelling_num_; pos++) {
241 raw_spellings_[pos].freq /= total_freq_;
243 if (0 == pos) {
247 if (raw_spellings_[pos].freq > max_score)
248 max_score = raw_spellings_[pos].freq;
249 if (raw_spellings_[pos].freq < min_score)
250 min_score = raw_spellings_[pos].freq;
270 for (size_t pos = 0; pos < spelling_num_; pos++) {
271 double score = log(raw_spellings_[pos].freq) * score_amplifier_;
280 char *this_spl_buf = spelling_buf_ + pos * spelling_size_;
285 printf("---pos:%d, %s, psb:%d\n", pos, this_spl_buf,