00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef _ACEXML_ENCODING_H
00017 #define _ACEXML_ENCODING_H
00018
00019 #include "ace/pre.h"
00020 #include "ACEXML/common/ACEXML_Export.h"
00021
00022 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00023 #pragma once
00024 #endif
00025
00026 #include "ACEXML/common/XML_Types.h"
00027
00028
00029
00030
00031
00032
00033
00034
00035 class ACEXML_Export ACEXML_Encoding
00036 {
00037 public:
00038 enum {
00039 UCS4BE,
00040 UCS4LE,
00041 UCS4_2143,
00042 UCS4_3412,
00043 UTF16BE,
00044 UTF16LE,
00045 UTF8,
00046 OTHER
00047 } ENCODING;
00048
00049 static const ACEXML_Char* encoding_names_[8];
00050
00051 static const ACEXML_UTF8 byte_order_mark_[][4];
00052
00053 static const ACEXML_UTF8 magic_values_[][4];
00054
00055 static const ACEXML_Char* get_encoding (const char* input);
00056
00057 };
00058
00059 #include "ace/post.h"
00060
00061 #endif