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

Function ForEachToken

libs/indexer/categories_index.cpp:33–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31
32template <typename TF>
33void ForEachToken(std::string const & s, TF && fn)
34{
35 search::ForEachNormalizedToken(s, [&fn](strings::UniString const & token) { fn(strings::ToUtf8(token)); });
36}
37
38void TokenizeAndAddAllSubstrings(base::MemTrie<std::string, base::VectorValues<uint32_t>> & trie, std::string const & s,
39 uint32_t value)

Callers 4

AddMethod · 0.85
EraseMethod · 0.85
GetAssociatedTypesMethod · 0.85

Calls 2

ForEachNormalizedTokenFunction · 0.85
ToUtf8Function · 0.50

Tested by

no test coverage detected