diff options
author | Daniel Veillard <veillard@src.gnome.org> | 1999-05-29 11:51:49 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 1999-05-29 11:51:49 +0000 |
commit | 27d88744f942598a7ea4d0a4a0902ecb0f2db50b (patch) | |
tree | f19227763808657b171c68abb5f41f99c1015e69 /encoding.h | |
parent | 5e60f5a2361a0ff73b710c0a28869ef0ec9b5092 (diff) | |
download | libxml2-27d88744f942598a7ea4d0a4a0902ecb0f2db50b.tar.gz |
CORBA defines fixes, char encoding atodetection, Daniel
Diffstat (limited to 'encoding.h')
-rw-r--r-- | encoding.h | 37 |
1 files changed, 32 insertions, 5 deletions
@@ -13,22 +13,49 @@ * [US-ASCII] Coded Character Set--7-bit American Standard Code for * Information Interchange, ANSI X3.4-1986. * - * Original code from "Martin J. Duerst" <duerst@w3.org> - * * See Copyright for the status of this software. * * Daniel.Veillard@w3.org */ -#ifndef __XML_ENCODING_H__ -#define __XML_ENCODING_H__ +#ifndef __XML_CHAR_ENCODING_H__ +#define __XML_CHAR_ENCODING_H__ #ifdef __cplusplus extern "C" { #endif +typedef enum { + XML_CHAR_ENCODING_ERROR= -1, /* No char encoding detected */ + XML_CHAR_ENCODING_NONE= 0, /* No char encoding detected */ + XML_CHAR_ENCODING_UTF8= 1, /* UTF-8 */ + XML_CHAR_ENCODING_UTF16LE= 2, /* UTF-16 little endian */ + XML_CHAR_ENCODING_UTF16BE= 3, /* UTF-16 big endian */ + XML_CHAR_ENCODING_UCS4LE= 4, /* UCS-4 little endian */ + XML_CHAR_ENCODING_UCS4BE= 5, /* UCS-4 big endian */ + XML_CHAR_ENCODING_EBCDIC= 6, /* EBCDIC uh! */ + XML_CHAR_ENCODING_UCS4_2143=7, /* UCS-4 unusual ordering */ + XML_CHAR_ENCODING_UCS4_3412=8, /* UCS-4 unusual ordering */ + XML_CHAR_ENCODING_UCS2= 9, /* UCS-2 */ + XML_CHAR_ENCODING_8859_1= 10,/* ISO-8859-1 ISO Latin 1 */ + XML_CHAR_ENCODING_8859_2= 11,/* ISO-8859-2 ISO Latin 2 */ + XML_CHAR_ENCODING_8859_3= 12,/* ISO-8859-3 */ + XML_CHAR_ENCODING_8859_4= 13,/* ISO-8859-4 */ + XML_CHAR_ENCODING_8859_5= 14,/* ISO-8859-5 */ + XML_CHAR_ENCODING_8859_6= 15,/* ISO-8859-6 */ + XML_CHAR_ENCODING_8859_7= 16,/* ISO-8859-7 */ + XML_CHAR_ENCODING_8859_8= 17,/* ISO-8859-8 */ + XML_CHAR_ENCODING_8859_9= 18,/* ISO-8859-9 */ + XML_CHAR_ENCODING_2022_JP= 19,/* ISO-2022-JP */ + XML_CHAR_ENCODING_SHIFT_JIS=20,/* Shift_JIS */ + XML_CHAR_ENCODING_EUC_JP= 21,/* EUC-JP */ +} xmlCharEncoding; + +extern xmlCharEncoding xmlDetectCharEncoding(unsigned char* in); +extern xmlCharEncoding xmlParseCharEncoding(char* name); + #ifdef __cplusplus } #endif -#endif /* __XML_ENCODING_H__ */ +#endif /* __XML_CHAR_ENCODING_H__ */ |