OSDN Git Service

Fix issue #940: Replace slow (2)
[winmerge-jp/winmerge-jp.git] / Src / charsets.h
1 /* charsets.h -- character set information and mappings
2
3   (c) 1998-2003 (W3C) MIT, ERCIM, Keio University
4   See tidy.h for the copyright notice.
5
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.
11 */
12
13 #pragma once
14
15 #ifdef __cplusplus
16 #define extern extern "C"
17 #endif
18
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);
25
26 extern void charsets_init(void);
27 extern void charsets_cleanup(void);
28
29 #undef extern