Function cras::stripTrailing(::std::string&, const char&)

Function Documentation

void cras::stripTrailing(::std::string &s, const char &c = ' ')

Strip c from the end of the given string (if there is one).

Parameters:
  • s[inout] The string from which c should be removed.

  • c[in] The character to remove.