Functions | |
std::string | trim (const std::string &orig) |
template<typename T> | |
std::string | dataToString (const T &x) |
std::string | intToString (int x, int width) |
template<typename T> | |
void | stringToData (const std::string &x, T &value) |
template<typename T> | |
T | stringToData (const std::string &x) |
void | parse_file (const std::string &filename, std::map< std::string, std::string > &dict) |
|
Returns the string orig without leading and trailing whitespace.
|
|
Returns a string containing the text representation of x. Care is taken that no information is lost in the conversion. Definition at line 83 of file cxxutils.cc. |
|
Returns a string containing the text representation of x, padded with leading zeroes to width characters. Definition at line 114 of file cxxutils.cc. |
|
Reads a value of a given datatype from a string.
|
|
Reads a value of a given datatype from a string.
Definition at line 223 of file cxxutils.h. |
|
Parses the file filename and returns the key/value pairs in dict.
|