MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / EndsWithInsensitive

Function EndsWithInsensitive

apps/tools/Tools/commands/MineCommand.cpp:55–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55bool EndsWithInsensitive(const std::string& value, const char* suffix)
56{
57 const size_t suffixLength = std::strlen(suffix);
58 if (value.size() < suffixLength)
59 return false;
60 return ToLowerAscii(value.substr(value.size() - suffixLength)) == suffix;
61}
62
63std::string StripPboExtension(const std::string& path)
64{

Callers 1

StripPboExtensionFunction · 0.85

Calls 2

sizeMethod · 0.80
ToLowerAsciiFunction · 0.70

Tested by

no test coverage detected