#include <>>
|
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.
- Author
- Tim Niemueller
Definition at line 36 of file string_conversions.h.
◆ resolve_path()
std::string fawkes::StringConversions::resolve_path |
( |
std::string |
s | ) |
|
|
static |
◆ resolve_paths()
std::vector< std::string > fawkes::StringConversions::resolve_paths |
( |
std::vector< std::string > |
s | ) |
|
|
static |
◆ to_bool()
bool fawkes::StringConversions::to_bool |
( |
std::string |
s | ) |
|
|
static |
◆ to_double()
double fawkes::StringConversions::to_double |
( |
std::string |
s | ) |
|
|
static |
Convert string to a double value.
- Parameters
-
- Returns
- value as represented by string
Definition at line 213 of file string_conversions.cpp.
◆ to_float()
float fawkes::StringConversions::to_float |
( |
std::string |
s | ) |
|
|
static |
Convert string to a float value.
- Parameters
-
- Returns
- value as represented by string
Definition at line 203 of file string_conversions.cpp.
◆ to_int()
int fawkes::StringConversions::to_int |
( |
std::string |
s | ) |
|
|
static |
◆ to_long()
long fawkes::StringConversions::to_long |
( |
std::string |
s | ) |
|
|
static |
Convert string to a long int value.
- Parameters
-
- Returns
- value as represented by string
Definition at line 193 of file string_conversions.cpp.
◆ to_lower()
std::string fawkes::StringConversions::to_lower |
( |
std::string |
str | ) |
|
|
static |
Convert string to all-lowercase string.
- Parameters
-
- Returns
- converted string
Definition at line 59 of file string_conversions.cpp.
◆ to_string() [1/7]
std::string fawkes::StringConversions::to_string |
( |
bool |
b | ) |
|
|
static |
Convert bool value to a string.
- Parameters
-
- Returns
- string representation of value.
Definition at line 158 of file string_conversions.cpp.
◆ to_string() [2/7]
static std::string fawkes::StringConversions::to_string |
( |
const std::string & |
s | ) |
|
|
inlinestatic |
No-op conversion of string.
- Parameters
-
- Returns
- string the very same string
Definition at line 59 of file string_conversions.h.
◆ to_string() [3/7]
std::string fawkes::StringConversions::to_string |
( |
double |
d | ) |
|
|
static |
Convert double value to a string.
- Parameters
-
- Returns
- string representation of value.
Definition at line 141 of file string_conversions.cpp.
◆ to_string() [4/7]
std::string fawkes::StringConversions::to_string |
( |
float |
f | ) |
|
|
static |
Convert float value to a string.
- Parameters
-
- Returns
- string representation of value.
Definition at line 124 of file string_conversions.cpp.
◆ to_string() [5/7]
std::string fawkes::StringConversions::to_string |
( |
int |
i | ) |
|
|
static |
Convert int value to a string.
- Parameters
-
- Returns
- string representation of value.
Definition at line 90 of file string_conversions.cpp.
◆ to_string() [6/7]
std::string fawkes::StringConversions::to_string |
( |
long int |
i | ) |
|
|
static |
Convert long int value to a string.
- Parameters
-
- Returns
- string representation of value.
Definition at line 107 of file string_conversions.cpp.
◆ to_string() [7/7]
std::string fawkes::StringConversions::to_string |
( |
unsigned int |
i | ) |
|
|
static |
◆ to_uint()
unsigned int fawkes::StringConversions::to_uint |
( |
std::string |
s | ) |
|
|
static |
Convert string to an unsigned int value.
- Parameters
-
- Returns
- value as represented by string
Definition at line 172 of file string_conversions.cpp.
◆ to_upper()
std::string fawkes::StringConversions::to_upper |
( |
std::string |
str | ) |
|
|
static |
◆ trim()
std::string fawkes::StringConversions::trim |
( |
const std::string & |
s | ) |
|
|
static |
Trim spring.
Removes spaces at beginning and end of string.
- Parameters
-
- Returns
- trimmed string
Definition at line 251 of file string_conversions.cpp.
◆ trim_inplace()
void fawkes::StringConversions::trim_inplace |
( |
std::string & |
s | ) |
|
|
static |
Trim string.
Removes spaces at beginning and end of string.
- Parameters
-
s | string to trim, upon return contains trimmed string |
Definition at line 237 of file string_conversions.cpp.
The documentation for this class was generated from the following files: