Function cras::stripLeadingSlash(const ::std::string&, bool)
Defined in File string_utils.hpp
Function Documentation
-
::std::string cras::stripLeadingSlash(const ::std::string &s, bool warn = false)
Return a copy of the given string with leading slash removed (if there is one).
- Parameters:
s – [in] The string from which slash should be removed.
warn – [in] If true, issue a ROS warning if the string contained the leading slash.
- Returns:
The string without leading slash.