2 #pragma warning(disable : 4251) 13 #define BOOST_HAS_STDINT_H 42 ss.precision(precision);
48 static std::string
toStlString(
const T& t,
int fieldWidth,
char fillChar)
51 ss << std::setfill(fillChar) << std::setw(fieldWidth) << t;
55 static std::string
toStlString(
const bool& b,
int fieldWidth,
char fillChar)
59 str = std::string(
"true");
61 str = std::string(
"false");
64 ss << std::setfill(fillChar) << std::setw(fieldWidth) << str;
71 return std::string(
"true");
73 return std::string(
"false");
79 std::wstringstream ss;
87 std::wstringstream ss;
88 ss.precision(precision);
96 std::wstringstream ss;
97 ss << std::setfill(fillChar) << std::setw(fieldWidth) << t;
110 std::wstringstream ss;
111 ss << std::setfill(fillChar) << std::setw(fieldWidth) << str._utf16string;
125 static std::string toUpper(
const std::string& str);
127 static std::string toLower(
const std::string& str);
134 static std::string trimLeft(
const std::string& str);
136 static std::string trimRight(
const std::string& str);
138 static std::string trim(
const std::string& str);
147 static std::string replace(
const std::string& str,
const std::string& src,
const std::string& rpl);
152 static bool isEmpty(
const std::string& str);
157 static bool toBool(
const std::string& str,
bool* ok = 0);
159 static bool toBool(
const char* str,
bool* ok = 0);
161 static bool toBool(
const Base::String& str,
bool* ok = 0);
163 static double toDouble(
const std::string& str,
bool* ok = 0);
165 static double toDouble(
const char* str,
bool* ok = 0);
167 static double toDouble(
const Base::String& str,
bool* ok = 0);
169 static float toFloat(
const std::string& str,
bool* ok = 0);
171 static uint8_t toUInt8(
const std::string& str,
bool* ok);
172 static uint8_t toUInt8(
const Base::String& str,
bool* ok);
173 static uint32_t toUInt32(
const std::string& str,
bool* ok);
174 static uint32_t toUInt32(
const Base::String& str,
bool* ok);
175 static uint64_t toUInt64(
const std::string& str,
bool* ok);
176 static uint64_t toUInt64(
const Base::String& str,
bool* ok);
177 static int toInt(
const std::string& str,
bool* ok = 0);
178 static int toInt(
const Base::String& str,
bool* ok = 0);
180 static char toChar(
const std::string& str,
bool* ok = 0);
182 static Base::String toUtf16(
const std::string& utf8string);
184 static std::string toUtf8(
const Base::String& widestring);
189 static std::string toStlString(
const Base::String& str);
193 static std::string toLegal(
const std::string& str);
195 static std::string createGuidString();
197 static bool toUuid(
const std::string& ifcguid, QUuid& uuid);
199 static bool toGUID(
const std::string& ifcguid, std::string& guid);
201 static bool toBase64String(
const std::string& in, std::string& out);
203 static bool toBase64String(
const QUuid& in, std::string& out);
211 static std::string toMultiByteString(
const Base::String& str);
#define BASE_EXPORT
Definition: base_defines.h:12
A Utf-16 (windows) or ucs4 (unix) encoded string class.
Definition: String.h:29
Definition: GlobalId.h:32
Definition: AbstractXMLReader.h:8