MCPcopy Create free account
hub / github.com/LASzip/LASzip / StringEndsWith

Function StringEndsWith

src/mydefs.cpp:448–451  ·  view source on GitHub ↗

checks if a fullString ends with a certain ending

Source from the content-addressed store, hash-verified

446
447/// checks if a fullString ends with a certain ending
448bool StringEndsWith(const std::string& fullString, const std::string& ending) {
449 if (ending.size() > fullString.size()) return false;
450 return fullString.compare(fullString.size() - ending.size(), ending.size(), ending) == 0;
451}
452
453/// <summary>
454/// Check if file has a certain file extension (case insensitive)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected