MCPcopy Create free account
hub / github.com/KhronosGroup/KTX-Software / ends_with

Function ends_with

external/astc-encoder/Source/astcenccli_toplevel.cpp:213–219  ·  view source on GitHub ↗

* @brief Test if a string ends with a given suffix. */

Source from the content-addressed store, hash-verified

211 * @brief Test if a string ends with a given suffix.
212 */
213static bool ends_with(
214 const std::string& str,
215 const std::string& suffix
216) {
217 return (str.size() >= suffix.size()) &&
218 (0 == str.compare(str.size() - suffix.size(), suffix.size(), suffix));
219}
220
221/**
222 * @brief Runner callback function for a compression worker thread.

Callers 1

astcenc_mainFunction · 0.85

Calls 2

sizeMethod · 0.45
compareMethod · 0.45

Tested by

no test coverage detected