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

Function JoinQueryTokens

libs/search/geocoder.cpp:230–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228};
229
230void JoinQueryTokens(QueryParams const & params, TokenRange const & range, UniString const & sep, UniString & res)
231{
232 ASSERT(range.IsValid(), (range));
233 for (size_t i : range)
234 {
235 res.append(params.GetToken(i).GetOriginal());
236 if (i + 1 != range.End())
237 res.append(sep);
238 }
239}
240
241/// @todo Can't change on string_view now, because of unordered_map<string> Affiliations.
242[[nodiscard]] bool GetAffiliationName(FeatureType & ft, string & affiliation)

Callers 2

InitLayerMethod · 0.85
WithPostcodesMethod · 0.85

Calls 4

ASSERTFunction · 0.85
IsValidMethod · 0.45
appendMethod · 0.45
EndMethod · 0.45

Tested by

no test coverage detected