#include <Utility.hxx>
Static Public Member Functions | |
template<class T> | |
static string | T_as_string (const T &t) |
Convert from a T to a string Type T must support << operator. | |
template<class T> | |
static T | string_as_T (const string &s) |
Convert from a string to a T Type T must support >> operator. | |
static void | trim (string &s) |
Remove leading whitespace. | |
static void | stringToLower (char *str, int len) |
Convert a string to lower case. |
string cqosdb::Utility::T_as_string | ( | const T & | t | ) | [inline, static] |
Convert from a T to a string Type T must support << operator.
bool cqosdb::Utility::string_as_T< bool > | ( | const string & | s | ) | [inline, static] |
Convert from a string to a T Type T must support >> operator.
Convert from a string to a bool.
Convert from a string to a string.
Interpret "false", "F", "no", "n", "0" as false; Interpret "true", "T", "yes", "y", "1", "-1", or anything else as true
void cqosdb::Utility::trim | ( | string & | s | ) | [static] |
Remove leading whitespace.
void cqosdb::Utility::stringToLower | ( | char * | str, | |
int | len | |||
) | [static] |
Convert a string to lower case.