Function cras::stripLeadingSlash(::std::string&, bool)

Function Documentation

void cras::stripLeadingSlash(::std::string &s, bool warn = false)

Strip leading slash from the given string (if there is one).

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

  • warn[in] If true, issue a ROS warning if the string contained the leading slash.