Function cras::endsWith

Function Documentation

bool cras::endsWith(const ::std::string &str, const ::std::string &suffix)

Check whether suffix is a suffix of str.

Parameters:
  • str[in] The string to be searched in.

  • suffix[in] The string to be found in str.

Returns:

Whether suffix is a suffix of str.