endsWith#

Fully qualified name: omni::extras::endsWith

Defined in omni/extras/StringHelpers.h

inline bool omni::extras::endsWith(
const std::string &str,
const std::string &ending,
)#

Checks a string to see if it ends with a given suffix.

Parameters:
  • str – The string to check

  • ending – The possible ending to check for

Returns:

true if str ends with ending; false otherwise