ACEXML 6.0.5
|
#include <ACEXML/common/Encoding.h>
Public Types | |
enum | { UCS4BE, UCS4LE, UCS4_2143, UCS4_3412, UTF16BE, UTF16LE, UTF8, OTHER } |
Static Public Member Functions | |
static const ACEXML_Char * | get_encoding (const char *input) |
Public Attributes | |
enum ACEXML_Encoding:: { ... } | ENCODING |
Static Public Attributes | |
static const ACEXML_Char * | encoding_names_ [8] |
static const ACEXML_UTF8 | byte_order_mark_ [][4] |
static const ACEXML_UTF8 | magic_values_ [][4] |
Wrapper class for determining the encoding of a file or a byte stream.
const ACEXML_Char * ACEXML_Encoding::get_encoding | ( | const char * | input | ) | [static] |
const ACEXML_UTF8 ACEXML_Encoding::byte_order_mark_ [static] |
{ { '\x00', '\x00', '\xFE', '\xFF' }, { '\xFF', '\xFE', '\x00', '\x00' }, { '\x00', '\x00', '\xFF', '\xFE' }, { '\xFE', '\xFF', '\x00', '\x00' }, { '\xFE', '\xFF', '\xFF', '\xFF' }, { '\xFF', '\xFE', '\xFF', '\xFF' }, { '\xEF', '\xBB', '\xBF', '\xFF' } }
enum { ... } ACEXML_Encoding::ENCODING |
const ACEXML_Char * ACEXML_Encoding::encoding_names_ [static] |
const ACEXML_UTF8 ACEXML_Encoding::magic_values_ [static] |
{ { '\x00', '\x00', '\x00', '\x3c' }, { '\x3c', '\x00', '\x00', '\x00' }, { '\x00', '\x00', '\x3c', '\x00' }, { '\x00', '\x3c', '\x00', '\x00' }, { '\x00', '\x3c', '\x00', '\x3f' }, { '\x3c', '\x00', '\x3f', '\x00' }, { '\x3c', '\x3f', '\x78', '\x6d' }, }