Function cras::startsWith

Function Documentation

bool cras::startsWith(const ::std::string &str, const ::std::string &prefix)

Check whether prefix is a prefix of str.

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

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

Returns:

Whether prefix is a prefix of str.