1 /* charsets.h -- character set information and mappings
3 (c) 1998-2003 (W3C) MIT, ERCIM, Keio University
4 See tidy.h for the copyright notice.
6 * Changes 2005-01-09 Jochen Tucht
7 This file originates from the Tidy library (tidy.sourceforge.net).
8 Dependencies on other parts of the library have been removed to make it
9 easily plug into a Win32 application that does not use Tidy elsewhere.
10 Runtime-allocated index arrays have been added to improve lookup speed.
16 #define extern extern "C"
19 extern unsigned GetEncodingIdFromName(const char *name);
20 extern unsigned GetEncodingIdFromCodePage(unsigned cp);
21 extern unsigned GetEncodingCodePageFromName(const char *name);
22 extern unsigned GetEncodingCodePageFromId(unsigned id);
23 extern const char *GetEncodingNameFromId(unsigned id);
24 extern const char *GetEncodingNameFromCodePage(unsigned cp);
26 extern void charsets_init(void);
27 extern void charsets_cleanup(void);