Home
last modified time | relevance | path

Searched refs:w_range (Results 1 – 2 of 2) sorted by relevance

/external/marisa-trie/tests/
Dtrie-test.cc176 marisa::grimoire::trie::WeightedRange w_range; in TestRange() local
178 ASSERT(w_range.begin() == 0); in TestRange()
179 ASSERT(w_range.end() == 0); in TestRange()
180 ASSERT(w_range.key_pos() == 0); in TestRange()
181 ASSERT(w_range.weight() == 0.0F); in TestRange()
183 w_range.set_begin(10); in TestRange()
184 w_range.set_end(20); in TestRange()
185 w_range.set_key_pos(30); in TestRange()
186 w_range.set_weight(40.0F); in TestRange()
188 ASSERT(w_range.begin() == 10); in TestRange()
[all …]
/external/marisa-trie/lib/marisa/grimoire/trie/
Dlouds-trie.cc385 WeightedRange &w_range = w_ranges[i]; in build_current_trie() local
386 std::size_t key_pos = w_range.key_pos() + 1; in build_current_trie()
387 while (key_pos < keys[w_range.begin()].length()) { in build_current_trie()
389 for (j = w_range.begin() + 1; j < w_range.end(); ++j) { in build_current_trie()
394 if (j < w_range.end()) { in build_current_trie()
399 cache<T>(node_id, bases_.size(), w_range.weight(), 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()
410 next_key.set_str(keys[w_range.begin()].ptr(), in build_current_trie()
[all …]