#include <Charset.h>
|
static String | decode (const char *_mbs, size_t _nmbs=(size_t) -1) |
Definition at line 351 of file Charset.h.
◆ decode()
String Latin1Decoder::decode |
( |
const char * | _mbs, |
|
|
size_t | _nmbs = (size_t)-1 ) |
|
static |
Definition at line 432 of file CharsetDecoder.cpp.
433{
434 if (_mbslen == (size_t)-1)
435 _mbslen = ByteString::length(_mbs);
436
437 CharBuffer*
buf = CharBuffer::create(_mbslen);
438 wchar_t* p =
buf->data();
439 for (size_t i = 0; i < _mbslen; i++)
440 p[i] = (
wchar_t)(
byte_t)_mbs[i];
441
442 p[_mbslen] = L'\0';
443 buf->__dataLength = _mbslen;
445
449}
#define __DCL_ASSERT(expr)
◆ toWideChar()
int Latin1Decoder::toWideChar |
( |
const byte_t * | _mbs, |
|
|
size_t | _mbslen, |
|
|
ucs4_t * | _uc ) |
|
protectedvirtual |
The documentation for this class was generated from the following files: