Go to the documentation of this file.
27 ss.precision(precision);
33 static std::string
toStlString(
const T& t,
int fieldWidth,
char fillChar)
36 ss << std::setfill(fillChar) << std::setw(fieldWidth) << t;
40 static std::string
toStlString(
const bool& b,
int fieldWidth,
char fillChar)
44 str = std::string(
"true");
46 str = std::string(
"false");
49 ss << std::setfill(fillChar) << std::setw(fieldWidth) << str;
53 static std::string
toStlString(
const bool& b) {
return b ?
"true" :
"false"; }
60 std::wstringstream ss;
68 std::wstringstream ss;
69 ss.precision(precision);
77 std::wstringstream ss;
78 ss << std::setfill(fillChar) << std::setw(fieldWidth) << t;
91 std::wstringstream ss;
92 ss << std::setfill(fillChar) << std::setw(fieldWidth) << str._utf16string;
106 static std::string
toUpper(
const std::string& str);
108 static std::string
toLower(
const std::string& str);
115 static std::string
trimLeft(
const std::string& str);
119 static std::string
trim(
const std::string& str);
128 static std::string
replace(
const std::string& str,
const std::string& src,
const std::string& rpl);
138 static bool toBool(
const std::string& str,
bool* ok = 0);
140 static bool toBool(
const char* str,
bool* ok = 0);
144 static double toDouble(
const std::string& str,
bool* ok = 0);
146 static double toDouble(
const char* str,
bool* ok = 0);
150 static float toFloat(
const std::string& str,
bool* ok = 0);
152 static uint8_t
toUInt8(
const std::string& str,
bool* ok);
154 static uint32_t
toUInt32(
const std::string& str,
bool* ok);
156 static uint64_t
toUInt64(
const std::string& str,
bool* ok);
158 static int toInt(
const std::string& str,
bool* ok = 0);
161 static char toChar(
const std::string& str,
bool* ok = 0);
174 static std::string
toLegal(
const std::string& str);
178 static bool toUuid(
const std::string& ifcguid, QUuid& uuid);
180 static bool toGUID(
const std::string& ifcguid, std::string& guid);
Definition: GlobalId.h:28
A Utf-16 (windows) or ucs4 (unix) encoded string class.
Definition: String.h:18
Definition: AbstractXMLReader.h:5