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

Function EndsWith

libs/base/string_utils.cpp:368–374  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

366}
367
368bool EndsWith(UniString const & s1, UniString const & s2)
369{
370 if (s1.size() < s2.size())
371 return false;
372
373 return std::equal(s1.end() - s2.size(), s1.end(), s2.begin());
374}
375
376bool EatPrefix(std::string & s, std::string const & prefix)
377{

Callers 3

AddDACHNamesMethod · 0.85
ModifyDACHStreetFunction · 0.85
UNIT_TESTFunction · 0.85

Calls 3

sizeMethod · 0.45
endMethod · 0.45
beginMethod · 0.45

Tested by 1

UNIT_TESTFunction · 0.68