MCPcopy Create free account
hub / github.com/comaps/comaps / TokenizeAndAddAllSubstrings

Function TokenizeAndAddAllSubstrings

libs/indexer/categories_index.cpp:38–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38void TokenizeAndAddAllSubstrings(base::MemTrie<std::string, base::VectorValues<uint32_t>> & trie, std::string const & s,
39 uint32_t value)
40{
41 auto fn = [&](std::string const & token) { AddAllNonemptySubstrings(trie, token, value); };
42 ForEachToken(s, fn);
43}
44} // namespace
45
46void CategoriesIndex::AddCategoryByTypeAndLang(uint32_t type, int8_t lang)

Callers 3

Calls 2

AddAllNonemptySubstringsFunction · 0.85
ForEachTokenFunction · 0.85

Tested by

no test coverage detected