QStringHandler.hh File Reference


Detailed Description

Go to the source code of this file.

Namespaces

namespace  QStringHandler

Functions

std::string & QStringHandler::SwallowSpaces (std::string &s)
 remove spaces and tabs from the beginning of s
std::string & QStringHandler::RSwallowSpaces (std::string &s)
 remove spaces and tabs from the end of s
std::string & QStringHandler::DoubleSwallowSpaces (std::string &s)
 remove spaces and tabs from both the beginning and the end of s
void QStringHandler::Escape (std::string &text, char toBeEscaped)
 escape text by adding backslash before each instance of toBeEscaped character
void QStringHandler::UnEscape (std::string &text, char escaped)
 unescape text by removing backslash preceding each instance of escaped character
void QStringHandler::Replace (std::string &text, char oldChar, char newChar)
 replace oldChar with newChar in text. Escaped characters are not replaced.
size_t QStringHandler::Split (std::string source, std::list< std::string > &splitted, char separtator)
 split source into a list of substrings separated by separator
bool QStringHandler::StringToInt (std::string in, int &out, bool strictCheck)
 convert string to integer
bool QStringHandler::StringToInt (const std::string &in, int &out)
 wrapper for StringToInt(in, out, true)
bool QStringHandler::StringToBool (std::string in, bool &out)
 convert string to bool
bool QStringHandler::StringToDouble (std::string in, double &out, bool strictCheck)
 convert string to double
bool QStringHandler::StringToDouble (const std::string &in, double &out)
 wrapper for StringToDouble(in, out, true)
bool QStringHandler::StringToChar (const std::string &in, char &out)
 convert string to signed char (i.e. 8-bit int)
std::string QStringHandler::IntToString (int val)
 convert int value to string
std::string QStringHandler::BoolToString (bool val)
 convert bool value to string ("true" or "false")
std::string QStringHandler::DoubleToString (double val, int nDigits=4)
 convert double value to string
std::string QStringHandler::IntToHexString (int value)
 convert int value to string using hex representation


Generated on Tue Nov 16 10:50:00 2010 for CUORE Software by  doxygen 1.5.6