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

Function StartsWith

libs/base/string_utils.hpp:680–688  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

678
679template <typename IterT1, typename IterT2>
680bool StartsWith(IterT1 beg, IterT1 end, IterT2 begPrefix, IterT2 endPrefix)
681{
682 while (beg != end && begPrefix != endPrefix && *beg == *begPrefix)
683 {
684 ++beg;
685 ++begPrefix;
686 }
687 return begPrefix == endPrefix;
688}
689
690bool StartsWith(UniString const & s, UniString const & p);
691bool EndsWith(UniString const & s1, UniString const & s2);

Callers 10

GetSuggestionFunction · 0.50
SimilarityMethod · 0.50
GetPrefixErrorsMadeFunction · 0.50
CalcScoreMethod · 0.50
IsStopWordFunction · 0.50
TransformStringFunction · 0.50
GetMethod · 0.50
MatchFeatureByPostcodeFunction · 0.50
MatchForSuggestionsMethod · 0.50
UNIT_TESTFunction · 0.50

Calls

no outgoing calls

Tested by 1

UNIT_TESTFunction · 0.40