48 static std::string
prune(
const std::string& str);
61 static std::string
replace(std::string str,
const char* what,
68 static bool startsWith(
const std::string& str,
const std::string prefix);
71 static bool endsWith(
const std::string& str,
const std::string suffix);
81 static std::string
escapeXML(
const std::string& orig);
88 static std::string
urlEncode(
const std::string& url,
const std::string encodeWhich =
"");
89 static std::string
urlDecode(
const std::string& encoded);
91 static std::string
charToHex(
unsigned char c);
92 static unsigned char hexToChar(
const std::string& str);
static unsigned char hexToChar(const std::string &str)
static bool endsWith(const std::string &str, const std::string suffix)
Checks whether a given string ends with the suffix.
Some static methods for string processing.
static std::string escapeXML(const std::string &orig)
Replaces the standard escapes by their XML entities.
static std::string toTimeString(int time)
Builds a time string (hh:mm:ss) from the given seconds.
static std::string latin1_to_utf8(std::string str)
Transfers from Latin 1 (ISO-8859-1) to UTF-8.
static std::string urlEncode(const std::string &url, const std::string encodeWhich="")
static bool startsWith(const std::string &str, const std::string prefix)
Checks whether a given string starts with the prefix.
static std::string convertUmlaute(std::string str)
Converts german "Umlaute" to their latin-version.
static std::string emptyString
An empty string.
static std::string replace(std::string str, const char *what, const char *by)
static std::string to_lower_case(std::string str)
Transfers the content to lower case.
static std::string prune(const std::string &str)
Removes trailing and leading whitechars.
static std::string urlDecode(const std::string &encoded)
static std::string charToHex(unsigned char c)