Searched refs:query_pos (Results 1 – 5 of 5) sorted by relevance
/external/libbrillo/brillo/ |
D | url_utils.cc | 26 size_t* query_pos, in GetQueryStringPos() argument 30 *query_pos = url.size(); in GetQueryStringPos() 36 *query_pos = query_start; in GetQueryStringPos() 58 size_t query_pos; in TrimOffQueryString() local 59 if (!GetQueryStringPos(*url, false, &query_pos, nullptr)) in TrimOffQueryString() 61 std::string query_string = url->substr(query_pos); in TrimOffQueryString() 62 url->resize(query_pos); in TrimOffQueryString() 91 size_t query_pos, query_len; in GetQueryString() local 92 if (GetQueryStringPos(url, remove_fragment, &query_pos, &query_len)) { in GetQueryString() 93 query_string = url.substr(query_pos, query_len); in GetQueryString() [all …]
|
/external/marisa-trie/lib/marisa/grimoire/trie/ |
D | tail.cc | 78 MARISA_DEBUG_IF(agent.state().query_pos() >= agent.query().length(), in match() 83 const char * const ptr = &buf_[offset] - state.query_pos(); in match() 85 if (ptr[state.query_pos()] != agent.query()[state.query_pos()]) { in match() 88 state.set_query_pos(state.query_pos() + 1); in match() 89 if (ptr[state.query_pos()] == '\0') { in match() 92 } while (state.query_pos() < agent.query().length()); in match() 96 if (buf_[offset] != agent.query()[state.query_pos()]) { in match() 99 state.set_query_pos(state.query_pos() + 1); in match() 103 } while (state.query_pos() < agent.query().length()); in match() 113 const char *ptr = &buf_[offset] - state.query_pos(); in prefix_match() [all …]
|
D | louds-trie.cc | 59 while (state.query_pos() < agent.query().length()) { in lookup() 116 agent.set_key(agent.query().ptr(), state.query_pos()); in common_prefix_search() 122 while (state.query_pos() < agent.query().length()) { in common_prefix_search() 127 agent.set_key(agent.query().ptr(), state.query_pos()); in common_prefix_search() 146 while (state.query_pos() < agent.query().length()) { in predictive_search() 603 MARISA_DEBUG_IF(agent.state().query_pos() >= agent.query().length(), in find_child() 608 agent.query()[state.query_pos()]); in find_child() 615 state.set_query_pos(state.query_pos() + 1); in find_child() 630 const std::size_t prev_query_pos = state.query_pos(); in find_child() 633 } else if (state.query_pos() != prev_query_pos) { in find_child() [all …]
|
D | state.h | 31 void set_query_pos(std::size_t query_pos) { in set_query_pos() argument 32 MARISA_DEBUG_IF(query_pos > MARISA_UINT32_MAX, MARISA_SIZE_ERROR); in set_query_pos() 33 query_pos_ = (UInt32)query_pos; in set_query_pos() 46 std::size_t query_pos() const { in query_pos() function
|
/external/marisa-trie/tests/ |
D | trie-test.cc | 456 ASSERT(state.query_pos() == 0); in TestState() 467 ASSERT(state.query_pos() == 100); in TestState()
|