Fawkes API
Fawkes Development Version
|
Utility class that holds string methods. More...
#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 (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 (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 33 of file string_conversions.h.
|
static |
Resolves path-string with @...@ tags.
s | string to resolve |
Definition at line 284 of file string_conversions.cpp.
Referenced by resolve_paths(), and to_string().
|
static |
Resolves vector of path-string with @...@ tags.
s | strings to resolve |
Definition at line 309 of file string_conversions.cpp.
References resolve_path().
Referenced by to_string().
|
static |
Convert string to a bool value.
s | string to convert |
Definition at line 240 of file string_conversions.cpp.
Referenced by fawkes::NavGraph::default_property_as_bool(), fawkes::NavGraphEdge::property_as_bool(), fawkes::NavGraphNode::property_as_bool(), and to_string().
|
static |
Convert string to a double value.
s | string to convert |
Definition at line 229 of file string_conversions.cpp.
Referenced by to_string().
|
static |
Convert string to a float value.
s | string to convert |
Definition at line 218 of file string_conversions.cpp.
Referenced by fawkes::NavGraph::default_property_as_float(), fawkes::NavGraphEdge::property_as_float(), fawkes::NavGraphNode::property_as_float(), and to_string().
|
static |
Convert string to an int value.
s | string to convert |
Definition at line 197 of file string_conversions.cpp.
Referenced by fawkes::NavGraph::default_property_as_int(), InterfaceParser::parse(), fawkes::NavGraphEdge::property_as_int(), fawkes::NavGraphNode::property_as_int(), and to_string().
|
static |
Convert string to a long int value.
s | string to convert |
Definition at line 207 of file string_conversions.cpp.
Referenced by ClipsWebRequestProcessor::process_request(), and to_string().
|
static |
Convert string to all-lowercase string.
str | string to convert |
Definition at line 66 of file string_conversions.cpp.
|
static |
Convert unsigned int value to a string.
i | value to convert |
Definition at line 80 of file string_conversions.cpp.
Referenced by fawkes::Socket::connect(), fawkes::NetworkConfiguration::NetConfValueIterator::get_as_string(), WebviewFooterGenerator::html_footer(), LaserGuiGtkWindow::on_legtracker_toggled(), fawkes::RRDGraphDefinition::RRDGraphDefinition(), fawkes::NavGraph::set_default_property(), fawkes::NavGraphEdge::set_property(), fawkes::NavGraphNode::set_property(), and fawkes::AvahiThread::unwatch_service().
|
static |
Convert int value to a string.
i | value to convert |
Definition at line 98 of file string_conversions.cpp.
|
static |
Convert long int value to a string.
i | value to convert |
Definition at line 116 of file string_conversions.cpp.
|
static |
Convert float value to a string.
f | value to convert |
Definition at line 134 of file string_conversions.cpp.
|
static |
Convert double value to a string.
d | value to convert |
Definition at line 152 of file string_conversions.cpp.
|
static |
Convert bool value to a string.
b | value to convert |
Definition at line 170 of file string_conversions.cpp.
|
inlinestatic |
No-op conversion of string.
s | value to convert |
Definition at line 45 of file string_conversions.h.
References resolve_path(), resolve_paths(), to_bool(), to_double(), to_float(), to_int(), to_long(), to_uint(), trim(), and trim_inplace().
|
static |
Convert string to an unsigned int value.
s | string to convert |
Definition at line 185 of file string_conversions.cpp.
Referenced by to_string().
|
static |
Convert string to all-uppercase string.
str | string to convert |
Definition at line 52 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 271 of file string_conversions.cpp.
Referenced by to_string().
|
static |
Trim string.
Removes spaces at beginning and end of string.
s | string to trim, upon return contains trimmed string |
Definition at line 256 of file string_conversions.cpp.
Referenced by to_string().