20 0x00000000UL, 0x00003080UL, 0x000E2080UL,
21 0x03C82080UL, 0xFA082080UL, 0x82082080UL
26 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
27 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
28 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
29 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
30 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
31 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
32 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
33 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2, 3,3,3,3,3,3,3,3,4,4,4,4,5,5,5,5
38 std::basic_ostringstream<wchar_t> oStr;
41 const size_t lStringSize = iSrc.size();
44 const char* src = iSrc.c_str();
50 while (idx != lStringSize) {
52 uchar_t lCurrentChar =
static_cast<uchar_t
> (src[idx]);
62 if (lCurrentChar ==
'\0') {
72 lCurrentChar =
static_cast<uchar_t
> (src[idx]); ++idx;
73 tmpChar += lCurrentChar; tmpChar <<= 6;
76 lCurrentChar =
static_cast<uchar_t
> (src[idx]); ++idx;
77 tmpChar += lCurrentChar; tmpChar <<= 6;
80 lCurrentChar =
static_cast<uchar_t
> (src[idx]); ++idx;
81 tmpChar += lCurrentChar; tmpChar <<= 6;
84 lCurrentChar =
static_cast<uchar_t
> (src[idx]); ++idx;
85 tmpChar += lCurrentChar;
99 std::ostringstream oStr;
101 const wchar_t* src = iStr.c_str();
105 while (src[i] != 0) {
109 const char tmpChar =
static_cast<const char> (ch);
110 oStr << tmpChar; ++idx;
112 }
else if (ch < 0x800) {
113 char tmpChar =
static_cast<const char> ((ch >> 6) | 0xC0);
114 oStr << tmpChar; ++idx;
116 tmpChar =
static_cast<const char> ((ch & 0x3F) | 0x80);
117 oStr << tmpChar; ++idx;
119 }
else if (ch < 0x10000) {
120 char tmpChar =
static_cast<const char> ((ch>>12) | 0xE0);
121 oStr << tmpChar; ++idx;
123 tmpChar =
static_cast<const char> (((ch>>6) & 0x3F) | 0x80);
124 oStr << tmpChar; ++idx;
126 tmpChar =
static_cast<const char> ((ch & 0x3F) | 0x80);
127 oStr << tmpChar; ++idx;
129 }
else if (ch < 0x110000) {
130 char tmpChar =
static_cast<const char> ((ch>>18) | 0xF0);
131 oStr << tmpChar; ++idx;
133 tmpChar =
static_cast<const char> (((ch>>12) & 0x3F) | 0x80);
134 oStr << tmpChar; ++idx;
136 tmpChar =
static_cast<const char> (((ch>>6) & 0x3F) | 0x80);
137 oStr << tmpChar; ++idx;
139 tmpChar =
static_cast<const char> ((ch & 0x3F) | 0x80);
140 oStr << tmpChar; ++idx;
152 std::ostringstream oStr;
154 bool hasReachedEnd =
false;
155 for (
size_t idx = 0; hasReachedEnd ==
false; ++idx) {
159 const unsigned char lChar = iString[idx];
162 hasReachedEnd =
true;
164 oStr <<
"[" << idx <<
"]: " << std::hex << lChar;
173 std::ostringstream oStr;
176 for (std::wstring::const_iterator itChar = iString.begin();
177 itChar != iString.end(); ++itChar, ++idx) {
181 const wchar_t lChar = *itChar;
182 oStr <<
"[" << idx <<
"]: " << std::hex << lChar;
static std::wstring toWideString(const std::string &iSrc)
long unsigned int u_int32_t
static std::string displayCharString(const char *iString)
static std::string toSimpleString(const std::wstring &iStr)
static std::string displaySTLWString(const std::wstring &iString)
static const u_int32_t offsetsFromUTF8[6]
static const char trailingBytesForUTF8[256]