Lines Matching refs:key_pos
203 state.key_buf().resize(prev.key_pos()); in predictive_search()
352 (keys[range.begin()].length() == range.key_pos())) { in build_current_trie()
365 if (keys[i - 1][range.key_pos()] != keys[i][range.key_pos()]) { in build_current_trie()
367 range.begin(), i, range.key_pos(), (float)weight)); in build_current_trie()
374 range.begin(), range.end(), range.key_pos(), (float)weight)); in build_current_trie()
386 std::size_t key_pos = w_range.key_pos() + 1; in build_current_trie() local
387 while (key_pos < keys[w_range.begin()].length()) { in build_current_trie()
390 if (keys[j - 1][key_pos] != keys[j][key_pos]) { in build_current_trie()
397 ++key_pos; in build_current_trie()
400 keys[w_range.begin()][w_range.key_pos()]); in build_current_trie()
402 if (key_pos == w_range.key_pos() + 1) { in build_current_trie()
404 keys[w_range.begin()][w_range.key_pos()])); in build_current_trie()
412 next_key.substr(w_range.key_pos(), key_pos - w_range.key_pos()); in build_current_trie()
416 w_range.set_key_pos(key_pos); in build_current_trie()