| 109 | } |
| 110 | |
| 111 | static int getutf8Length(char header) { |
| 112 | int len = 0; |
| 113 | char mask = (char)0x80; |
| 114 | while(header & mask) { |
| 115 | header <<= 1; |
| 116 | len++; |
| 117 | } |
| 118 | return len == 0 ? 1 : len; |
| 119 | } |
| 120 | |
| 121 | static int oneUtf8Convert2Utf16(const std::string &utf8Str, int start, char *output) { |
| 122 | char b1, b2, b3; |
no outgoing calls
no test coverage detected