string_utils.h
Go to the documentation of this file.
1 // String utilities
2 // Author: Max Schwarz <max.schwarz@ais.uni-bonn.de>
3 
4 #ifndef ROSMON_LAUNCH_STRING_UTILS_H
5 #define ROSMON_LAUNCH_STRING_UTILS_H
6 
7 #include <string>
8 
9 namespace rosmon
10 {
11 namespace launch
12 {
13 namespace string_utils
14 {
15 
24 std::string simplifyWhitespace(const std::string& input);
25 
26 std::string strip(const std::string& input);
27 
33 std::string convertWhitespace(const std::string& input);
34 
38 bool isOnlyWhitespace(const std::string& input);
39 
40 }
41 }
42 }
43 
44 #endif
std::string simplifyWhitespace(const std::string &input)
Compress any sequence of whitespace to single spaces.
std::string convertWhitespace(const std::string &input)
Convert any whitespace to space characters.
std::string strip(const std::string &input)
bool isOnlyWhitespace(const std::string &input)
Check if string is whitespace only (includes &#39; &#39;)


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