src
launch
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
rosmon
Definition:
diagnostics_publisher.cpp:34
rosmon::launch::string_utils::strip
std::string strip(const std::string &input)
Definition:
string_utils.cpp:47
rosmon::launch::string_utils::isOnlyWhitespace
bool isOnlyWhitespace(const std::string &input)
Check if string is whitespace only (includes ' ')
Definition:
string_utils.cpp:74
rosmon::launch::string_utils::simplifyWhitespace
std::string simplifyWhitespace(const std::string &input)
Compress any sequence of whitespace to single spaces.
Definition:
string_utils.cpp:13
rosmon::launch::string_utils::convertWhitespace
std::string convertWhitespace(const std::string &input)
Convert any whitespace to space characters.
Definition:
string_utils.cpp:58
rosmon_core
Author(s): Max Schwarz
autogenerated on Wed Feb 21 2024 04:01:14