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

Function FillRequestFromToken

libs/search/utils.hpp:122–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120
121template <typename DFA>
122void FillRequestFromToken(QueryParams::Token const & token, SearchTrieRequest<DFA> & request)
123{
124 request.m_names.emplace_back(BuildLevenshteinDFA(token.GetOriginal()));
125 // Allow misprints for original token only.
126 token.ForEachSynonym([&request](strings::UniString const & s)
127 { request.m_names.emplace_back(strings::LevenshteinDFA(s, 0 /* maxErrors */)); });
128}
129} // namespace search

Callers 2

SetParamsMethod · 0.85
RetrieveMethod · 0.85

Calls 4

BuildLevenshteinDFAFunction · 0.85
LevenshteinDFAClass · 0.70
emplace_backMethod · 0.45
ForEachSynonymMethod · 0.45

Tested by

no test coverage detected