| 2253 | } |
| 2254 | |
| 2255 | lString16 ByteToUnicode( const lString8 & str, const lChar16 * table ) |
| 2256 | { |
| 2257 | lString16 buf; |
| 2258 | buf.reserve( str.length() ); |
| 2259 | for ( int i=0; i<(int)str.length(); i++ ) { |
| 2260 | int ch = (unsigned char)str[i]; |
| 2261 | lChar16 ch16 = ((ch & 0x80) && table) ? table[ (ch&0x7F) ] : ch; |
| 2262 | buf += ch16; |
| 2263 | } |
| 2264 | return buf; |
| 2265 | } |
| 2266 | |
| 2267 | |
| 2268 | #if !defined(__SYMBIAN32__) && defined(_WIN32) |
no test coverage detected