22 unsigned long uLongVariable;
23 std::stringstream(
string) >> uLongVariable;
34 std::string str2(str);
35 if(str2 ==
"true" || str2 ==
"t")
48 int len = input.length();
49 const unsigned char *in =
50 reinterpret_cast<const unsigned char*
>(input.c_str());
52 icu::UnicodeString out;
53 for (
int i = 0; i < len;)
57 U8_NEXT(in, i, len, uniChar);
65 U16_NEXT(in, i, len, uniChar);
66 if (U_IS_UNICODE_CHAR(uniChar) && uniChar > 0)
General utility functions for CPP.
bool stringToBool(const char *string)
unsigned long stringToUnsignedLong(const char *string)
icu::UnicodeString recodeToUnicode(const std::string &input)