Function cras::strip(const ::std::string&, const char&)
Defined in File string_utils.hpp
Function Documentation
-
::std::string cras::strip(const ::std::string &s, const char &c = ' ')
Return a copy of the given string with c removed from its beginning and end (if it was there).
- Parameters:
s – [in] The string from which c should be removed.
c – [in] The character to remove.
- Returns:
The string without c at the beginning and end.