MCPcopy Create free account
hub / github.com/ARM-software/astc-encoder / ends_with

Function ends_with

Source/astcenccli_toplevel.cpp:230–236  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

228 * @brief Test if a string ends with a given suffix.
229 */
230static bool ends_with(
231 const std::string& str,
232 const std::string& suffix
233) {
234 return (str.size() >= suffix.size()) &&
235 (0 == str.compare(str.size() - suffix.size(), suffix.size(), suffix));
236}
237
238/**
239 * @brief Runner callback function for a compression worker thread.

Callers 1

astcenc_mainFunction · 0.85

Calls 1

compareMethod · 0.80

Tested by

no test coverage detected