Function ros2_ouster::rtrim

Function Documentation

inline std::string &ros2_ouster::rtrim(std::string &str, const std::string &white = "\t\n\v\f\r ")

Trims whitespace from the right side of a string

Parameters
  • str – The string to trim

  • white – Whitespace characters to erase

Returns

A reference to the trimmed string