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

Function Documentation

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

Return a copy of the given string with c removed from its end (if there is one).

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

  • c[in] The character to remove.

Returns:

The string without c at the end.