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

Function Tokenize

libs/base/string_utils.hpp:415–423  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

413
414template <typename TFunctor>
415void Tokenize(std::string_view str, char const * delims, TFunctor && f)
416{
417 SimpleTokenizer iter(str, delims);
418 while (iter)
419 {
420 f(*iter);
421 ++iter;
422 }
423}
424
425/// @note Lifetime of return container is the same as \a str lifetime. Avoid temporary input.
426template <class ResultT = std::string_view>

Callers 15

ParseMapCSSFunction · 0.50
GetPostcodesFunction · 0.50
TagReplacerMethod · 0.50
ParseGeometryFunction · 0.50
UNIT_TESTFunction · 0.50
OnSaveMethod · 0.50
ParseAndAddPointsMethod · 0.50
GetLocalLanguageCodesMethod · 0.50
GetStreetNameAsKeyFunction · 0.50

Calls 2

ResultTEnum · 0.85
push_backMethod · 0.45

Tested by 4

UNIT_TESTFunction · 0.40
TestIterFunction · 0.40
UNIT_TESTFunction · 0.40
ForEachObjectFunction · 0.40