Home
last modified time | relevance | path

Searched refs:wrange (Results 1 – 4 of 4) sorted by relevance

/external/marisa-trie/v0_1_5/tests/
Dunit-test.cc302 marisa_alpha::WRange wrange; in TestRange() local
304 ASSERT(wrange.range().begin() == 0); in TestRange()
305 ASSERT(wrange.range().end() == 0); in TestRange()
306 ASSERT(wrange.range().pos() == 0); in TestRange()
308 ASSERT(wrange.begin() == 0); in TestRange()
309 ASSERT(wrange.end() == 0); in TestRange()
310 ASSERT(wrange.pos() == 0); in TestRange()
311 ASSERT(wrange.weight() == 0.0); in TestRange()
313 wrange = marisa_alpha::WRange(range, 4.0); in TestRange()
315 ASSERT(wrange.range().begin() == 1); in TestRange()
[all …]
/external/marisa-trie/tests/
Dunit-test.cc298 marisa::WRange wrange; in TestRange() local
300 ASSERT(wrange.range().begin() == 0); in TestRange()
301 ASSERT(wrange.range().end() == 0); in TestRange()
302 ASSERT(wrange.range().pos() == 0); in TestRange()
304 ASSERT(wrange.begin() == 0); in TestRange()
305 ASSERT(wrange.end() == 0); in TestRange()
306 ASSERT(wrange.pos() == 0); in TestRange()
307 ASSERT(wrange.weight() == 0.0); in TestRange()
309 wrange = marisa::WRange(range, 4.0); in TestRange()
311 ASSERT(wrange.range().begin() == 1); in TestRange()
[all …]
/external/marisa-trie/v0_1_5/lib/marisa_alpha/
Dtrie-build.cc218 const WRange &wrange = wranges[i]; in build_cur() local
219 UInt32 pos = wrange.pos() + 1; in build_cur()
222 while (pos < keys[wrange.begin()].str().length()) { in build_cur()
224 for (j = wrange.begin() + 1; j < wrange.end(); ++j) { in build_cur()
229 if (j < wrange.end()) { in build_cur()
236 (pos != keys[wrange.end() - 1].str().length())) { in build_cur()
237 pos = wrange.pos() + 1; in build_cur()
240 if (pos == wrange.pos() + 1) { in build_cur()
241 labels_.push_back(keys[wrange.begin()].str()[wrange.pos()]); in build_cur()
247 rest_key.set_str(keys[wrange.begin()].str().substr( in build_cur()
[all …]
/external/marisa-trie/lib/marisa/
Dtrie-build.cc209 const WRange &wrange = wranges[i]; in build_cur() local
210 UInt32 pos = wrange.pos() + 1; in build_cur()
212 while (pos < keys[wrange.begin()].str().length()) { in build_cur()
214 for (j = wrange.begin() + 1; j < wrange.end(); ++j) { in build_cur()
219 if (j < wrange.end()) { in build_cur()
226 (pos != keys[wrange.end() - 1].str().length())) { in build_cur()
227 pos = wrange.pos() + 1; in build_cur()
230 if (pos == wrange.pos() + 1) { in build_cur()
231 labels_.push_back(keys[wrange.begin()].str()[wrange.pos()]); in build_cur()
237 rest_key.set_str(keys[wrange.begin()].str().substr( in build_cur()
[all …]