#include <dcl/Config.h>
#include <bits/types/mbstate_t.h>
#include <dcl/Object.h>
#include <dcl/Exception.h>
#include <dcl/String.h>
Go to the source code of this file.
|
enum | Charset {
CS_LOCALE = (int)0
, CS_ASCII
, CS_LATIN1
, CS_UTF8
,
CS_UTF16
, CS_UTF32
} |
enum | UnicodeByteOrder { CS_DEFAULT_ENDIAN = __BYTE_ORDER
, CS_LITTLE_ENDIAN = __LITTLE_ENDIAN
, CS_BIG_ENDIAN = __BIG_ENDIAN
} |
enum | {
CS_NOERROR = 0
, CS_ILLEGAL_UCS
, CS_SOURCE_FEW
, CS_ILLEGAL_SEQUENCE
,
CS_ILLEGAL_UCS2
} |
|
__DCL_BEGIN_NAMESPACE typedef uint32_t | ucs4_t |
◆ __DCL_CHARSET_H__
#define __DCL_CHARSET_H__ 20071008 |
◆ IS_UTF16
◆ IS_UTF16BE
#define IS_UTF16BE |
( |
| bom | ) |
|
Value:((bom[0] == 0xFE) && (bom[1] == 0xFF))
Definition at line 34 of file Charset.h.
◆ IS_UTF16LE
#define IS_UTF16LE |
( |
| bom | ) |
|
Value:((bom[0] == 0xFF) && (bom[1] == 0xFE))
Definition at line 35 of file Charset.h.
◆ IS_UTF32
◆ IS_UTF32BE
#define IS_UTF32BE |
( |
| bom | ) |
|
Value: ((bom[0] == 0x00) && (bom[1] == 0x00) \
&& (bom[2] == 0xFE) && (bom[3] == 0xFF))
Definition at line 37 of file Charset.h.
37#define IS_UTF32BE(bom) ((bom[0] == 0x00) && (bom[1] == 0x00) \
38 && (bom[2] == 0xFE) && (bom[3] == 0xFF))
◆ IS_UTF32LE
#define IS_UTF32LE |
( |
| bom | ) |
|
Value: ((bom[0] == 0xFF) && (bom[1] == 0xFE) \
&& (bom[2] == 0x00) && (bom[3] == 0x00))
Definition at line 39 of file Charset.h.
39#define IS_UTF32LE(bom) ((bom[0] == 0xFF) && (bom[1] == 0xFE) \
40 && (bom[2] == 0x00) && (bom[3] == 0x00))
◆ IS_UTF8
Value:((bom[0] == 0xEF) && (bom[1] == 0xBB) && (bom[2] == 0xBF))
Definition at line 33 of file Charset.h.
◆ utf16_t
◆ utf32_t
◆ anonymous enum
Enumerator |
---|
CS_NOERROR | |
CS_ILLEGAL_UCS | |
CS_SOURCE_FEW | |
CS_ILLEGAL_SEQUENCE | |
CS_ILLEGAL_UCS2 | |
Definition at line 60 of file Charset.h.
◆ Charset
Enumerator |
---|
CS_LOCALE | |
CS_ASCII | |
CS_LATIN1 | |
CS_UTF8 | |
CS_UTF16 | |
CS_UTF32 | |
Definition at line 43 of file Charset.h.
◆ UnicodeByteOrder
Enumerator |
---|
CS_DEFAULT_ENDIAN | |
CS_LITTLE_ENDIAN | |
CS_BIG_ENDIAN | |
Definition at line 53 of file Charset.h.
◆ ucs4_t
__DCL_BEGIN_NAMESPACE typedef uint32_t ucs4_t |