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

Function StringEndsWith

LASzip/src/mydefs.cpp:444–447  ·  view source on GitHub ↗

checks if a fullString ends with a certain ending

Source from the content-addressed store, hash-verified

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

Callers 1

open_geo_fileMethod · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected