#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 = __ORDER_LITTLE_ENDIAN__
, CS_BIG_ENDIAN = __ORDER_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] == '\xfe') && (bom[1] == '\xff'))
Definition at line 39 of file Charset.h.
◆ IS_UTF16LE
| #define IS_UTF16LE |
( |
| bom | ) |
|
Value:((bom[0] == '\xff') && (bom[1] == '\xfe'))
Definition at line 40 of file Charset.h.
◆ IS_UTF32
◆ IS_UTF32BE
| #define IS_UTF32BE |
( |
| bom | ) |
|
Value: ((bom[0] == '\x00') && (bom[1] == '\x00') \
&& (bom[2] == '\xfe') && (bom[3] == '\xff'))
Definition at line 42 of file Charset.h.
42#define IS_UTF32BE(bom) ((bom[0] == '\x00') && (bom[1] == '\x00') \
43 && (bom[2] == '\xfe') && (bom[3] == '\xff'))
◆ IS_UTF32LE
| #define IS_UTF32LE |
( |
| bom | ) |
|
Value: ((bom[0] == '\xff') && (bom[1] == '\xfe') \
&& (bom[2] == '\x00') && (bom[3] == '\x00'))
Definition at line 44 of file Charset.h.
44#define IS_UTF32LE(bom) ((bom[0] == '\xff') && (bom[1] == '\xfe') \
45 && (bom[2] == '\x00') && (bom[3] == '\x00'))
◆ IS_UTF8
Value: ((bom[0] == '\xef') && (bom[1] == '\xbb') \
&& (bom[2] == '\xbf'))
Definition at line 37 of file Charset.h.
37#define IS_UTF8(bom) ((bom[0] == '\xef') && (bom[1] == '\xbb') \
38 && (bom[2] == '\xbf'))
◆ utf16_t
◆ utf32_t
◆ anonymous enum
| Enumerator |
|---|
| CS_NOERROR | |
| CS_ILLEGAL_UCS | |
| CS_SOURCE_FEW | |
| CS_ILLEGAL_SEQUENCE | |
| CS_ILLEGAL_UCS2 | |
Definition at line 65 of file Charset.h.
◆ Charset
| Enumerator |
|---|
| CS_LOCALE | |
| CS_ASCII | |
| CS_LATIN1 | |
| CS_UTF8 | |
| CS_UTF16 | |
| CS_UTF32 | |
Definition at line 48 of file Charset.h.
◆ UnicodeByteOrder
| Enumerator |
|---|
| CS_DEFAULT_ENDIAN | |
| CS_LITTLE_ENDIAN | |
| CS_BIG_ENDIAN | |
Definition at line 58 of file Charset.h.
58 {
59
63};
#define __ORDER_BIG_ENDIAN__
#define __ORDER_LITTLE_ENDIAN__
◆ ucs4_t
| __DCL_BEGIN_NAMESPACE typedef uint32_t ucs4_t |