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

Function ForEachNormalizedToken

libs/indexer/search_string_utils.hpp:78–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76
77template <class FnT>
78void ForEachNormalizedToken(std::string_view s, FnT && fn)
79{
80 SplitUniString(NormalizeAndSimplifyString(s), fn, Delimiters());
81}
82
83std::vector<strings::UniString> NormalizeAndTokenizeString(std::string_view s);
84bool TokenizeStringAndCheckIfLastTokenIsPrefix(std::string_view s, std::vector<strings::UniString> & tokens);

Callers 10

InsertPostcodesFunction · 0.85
GetDocVecsMethod · 0.85
StrictQueryMethod · 0.85
ForEachNameTokenMethod · 0.85
AddCategoryMethod · 0.85
ForEachTokenFunction · 0.85
SearchMethod · 0.85

Calls 3

SplitUniStringFunction · 0.85
DelimitersClass · 0.85

Tested by 1

StrictQueryMethod · 0.68