MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / endswith

Function endswith

arm_compute/core/utils/misc/Utility.h:185–192  ·  view source on GitHub ↗

Checks if a string contains a given suffix * * @param[in] str Input string * @param[in] suffix Suffix to check for * * @return True if the string ends with the given suffix else false */

Source from the content-addressed store, hash-verified

183 * @return True if the string ends with the given suffix else false
184 */
185inline bool endswith(const std::string &str, const std::string &suffix)
186{
187 if (str.size() < suffix.size())
188 {
189 return false;
190 }
191 return std::equal(suffix.rbegin(), suffix.rend(), str.rbegin());
192}
193
194/** Checks if a pointer complies with a given alignment
195 *

Callers 1

get_input_accessorFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected