|
Fawkes API
Fawkes Development Version
|
#include <>>
Static Public Member Functions | |
| static std::string | to_upper (std::string str) |
| Convert string to all-uppercase string. More... | |
| static std::string | to_lower (std::string str) |
| Convert string to all-lowercase string. More... | |
| static std::string | to_string (unsigned int i) |
| Convert unsigned int value to a string. More... | |
| static std::string | to_string (int i) |
| Convert int value to a string. More... | |
| static std::string | to_string (long int i) |
| Convert long int value to a string. More... | |
| static std::string | to_string (float f) |
| Convert float value to a string. More... | |
| static std::string | to_string (double d) |
| Convert double value to a string. More... | |
| static std::string | to_string (bool b) |
| Convert bool value to a string. More... | |
| static std::string | to_string (const std::string &s) |
| No-op conversion of string. More... | |
| static unsigned int | to_uint (std::string s) |
| Convert string to an unsigned int value. More... | |
| static int | to_int (std::string s) |
| Convert string to an int value. More... | |
| static long | to_long (std::string s) |
| Convert string to a long int value. More... | |
| static float | to_float (std::string s) |
| Convert string to a float value. More... | |
| static double | to_double (std::string s) |
| Convert string to a double value. More... | |
| static bool | to_bool (std::string s) |
| Convert string to a bool value. More... | |
| static void | trim_inplace (std::string &s) |
| Trim string. More... | |
| static std::string | trim (const std::string &s) |
| Trim spring. More... | |
| static std::string | resolve_path (std::string s) |
| Resolves path-string with @...@ tags. More... | |
| static std::vector< std::string > | resolve_paths (std::vector< std::string > s) |
| Resolves vector of path-string with @...@ tags. More... | |
Utility class that holds string methods.
Definition at line 38 of file string_conversions.h.
|
static |
Resolves path-string with @...@ tags.
| s | string to resolve |
Definition at line 265 of file string_conversions.cpp.
Referenced by RobotMemory::dump_collection(), resolve_paths(), and RobotMemory::restore_collection().
|
static |
Resolves vector of path-string with @...@ tags.
| s | strings to resolve |
Definition at line 291 of file string_conversions.cpp.
References resolve_path().
|
static |
Convert string to a bool value.
| s | string to convert |
Definition at line 224 of file string_conversions.cpp.
Referenced by fawkes::NavGraph::default_property_as_int(), fawkes::NavGraphEdge::property_as_int(), and fawkes::NavGraphNode::property_as_int().
|
static |
Convert string to a double value.
| s | string to convert |
Definition at line 214 of file string_conversions.cpp.
|
static |
Convert string to a float value.
| s | string to convert |
Definition at line 204 of file string_conversions.cpp.
|
static |
Convert string to an int value.
| s | string to convert |
Definition at line 184 of file string_conversions.cpp.
Referenced by fawkes::NavGraph::default_property_as_float(), InterfaceParser::parse(), fawkes::NavGraphEdge::property_as_float(), and fawkes::NavGraphNode::property_as_float().
|
static |
Convert string to a long int value.
| s | string to convert |
Definition at line 194 of file string_conversions.cpp.
|
static |
Convert string to all-lowercase string.
| str | string to convert |
Definition at line 60 of file string_conversions.cpp.
|
static |
Convert bool value to a string.
| b | value to convert |
Definition at line 159 of file string_conversions.cpp.
|
inlinestatic |
No-op conversion of string.
| s | value to convert |
Definition at line 62 of file string_conversions.h.
|
static |
Convert double value to a string.
| d | value to convert |
Definition at line 142 of file string_conversions.cpp.
|
static |
Convert float value to a string.
| f | value to convert |
Definition at line 125 of file string_conversions.cpp.
|
static |
Convert int value to a string.
| i | value to convert |
Definition at line 91 of file string_conversions.cpp.
|
static |
Convert long int value to a string.
| i | value to convert |
Definition at line 108 of file string_conversions.cpp.
|
static |
Convert unsigned int value to a string.
| i | value to convert |
Definition at line 73 of file string_conversions.cpp.
Referenced by fawkes::Socket::connect(), fawkes::NetworkConfiguration::NetConfValueIterator::get_as_string(), LaserGuiGtkWindow::on_legtracker_toggled(), fawkes::RRDGraphDefinition::RRDGraphDefinition(), fawkes::NavGraph::set_default_properties(), fawkes::NavGraph::set_default_property(), fawkes::NavGraphEdge::set_property(), fawkes::NavGraphNode::set_property(), and XabslSkillWrapper::skill_string().
|
static |
Convert string to an unsigned int value.
| s | string to convert |
Definition at line 173 of file string_conversions.cpp.
|
static |
Convert string to all-uppercase string.
| str | string to convert |
Definition at line 47 of file string_conversions.cpp.
Referenced by CppInterfaceGenerator::CppInterfaceGenerator(), and PluginGenerator::PluginGenerator().
|
static |
Trim spring.
Removes spaces at beginning and end of string.
| s | string to trim |
Definition at line 252 of file string_conversions.cpp.
|
static |
Trim string.
Removes spaces at beginning and end of string.
| s | string to trim, upon return contains trimmed string |
Definition at line 238 of file string_conversions.cpp.