Functions
rosmon::launch::string_utils Namespace Reference

Functions

std::string convertWhitespace (const std::string &input)
 Convert any whitespace to space characters. More...
 
bool isOnlyWhitespace (const std::string &input)
 Check if string is whitespace only (includes '
') More...
 
std::string simplifyWhitespace (const std::string &input)
 Compress any sequence of whitespace to single spaces. More...
 
std::string strip (const std::string &input)
 

Function Documentation

std::string rosmon::launch::string_utils::convertWhitespace ( const std::string &  input)

Convert any whitespace to space characters.

Unlike simplifyWhitespace(), this does not compress whitespace.

Definition at line 58 of file string_utils.cpp.

bool rosmon::launch::string_utils::isOnlyWhitespace ( const std::string &  input)

Check if string is whitespace only (includes '
')

Definition at line 74 of file string_utils.cpp.

std::string rosmon::launch::string_utils::simplifyWhitespace ( const std::string &  input)

Compress any sequence of whitespace to single spaces.

Since we switch of space condensing in TinyXML to be able to properly parse <rosparam> tags, this function can be used for attributes.

roslaunch also strips whitespace at begin/end, so we do that as well.

Definition at line 13 of file string_utils.cpp.

std::string rosmon::launch::string_utils::strip ( const std::string &  input)

Definition at line 47 of file string_utils.cpp.



rosmon_core
Author(s): Max Schwarz
autogenerated on Sat Jan 9 2021 03:35:43