4 * Copyright 2000 Alexandre Julliard
9 #include "wine/unicode.h"
11 /* Everything below this line is generated automatically by cpmap.pl */
12 /* ### cpmap begin ### */
13 extern union cptable cptable_037;
14 extern union cptable cptable_042;
15 extern union cptable cptable_424;
16 extern union cptable cptable_437;
17 extern union cptable cptable_500;
18 extern union cptable cptable_737;
19 extern union cptable cptable_775;
20 extern union cptable cptable_850;
21 extern union cptable cptable_852;
22 extern union cptable cptable_855;
23 extern union cptable cptable_856;
24 extern union cptable cptable_857;
25 extern union cptable cptable_860;
26 extern union cptable cptable_861;
27 extern union cptable cptable_862;
28 extern union cptable cptable_863;
29 extern union cptable cptable_864;
30 extern union cptable cptable_865;
31 extern union cptable cptable_866;
32 extern union cptable cptable_869;
33 extern union cptable cptable_874;
34 extern union cptable cptable_875;
35 extern union cptable cptable_878;
36 extern union cptable cptable_932;
37 extern union cptable cptable_936;
38 extern union cptable cptable_949;
39 extern union cptable cptable_950;
40 extern union cptable cptable_1006;
41 extern union cptable cptable_1026;
42 extern union cptable cptable_1250;
43 extern union cptable cptable_1251;
44 extern union cptable cptable_1252;
45 extern union cptable cptable_1253;
46 extern union cptable cptable_1254;
47 extern union cptable cptable_1255;
48 extern union cptable cptable_1256;
49 extern union cptable cptable_1257;
50 extern union cptable cptable_1258;
51 extern union cptable cptable_10000;
52 extern union cptable cptable_10006;
53 extern union cptable cptable_10007;
54 extern union cptable cptable_10029;
55 extern union cptable cptable_10079;
56 extern union cptable cptable_10081;
57 extern union cptable cptable_20866;
58 extern union cptable cptable_28591;
59 extern union cptable cptable_28592;
60 extern union cptable cptable_28593;
61 extern union cptable cptable_28594;
62 extern union cptable cptable_28595;
63 extern union cptable cptable_28596;
64 extern union cptable cptable_28597;
65 extern union cptable cptable_28598;
66 extern union cptable cptable_28599;
67 extern union cptable cptable_28600;
68 extern union cptable cptable_28603;
69 extern union cptable cptable_28604;
70 extern union cptable cptable_28605;
72 static const union cptable * const cptables[58] =
133 /* ### cpmap end ### */
134 /* Everything above this line is generated automatically by cpmap.pl */
136 #define NB_CODEPAGES (sizeof(cptables)/sizeof(cptables[0]))
139 static int cmp_codepage( const void *codepage, const void *entry )
141 return (unsigned int)codepage - (*(union cptable **)entry)->info.codepage;
145 /* get the table of a given code page */
146 const union cptable *cp_get_table( unsigned int codepage )
148 const union cptable **res;
150 if (!(res = bsearch( (void *)codepage, cptables, NB_CODEPAGES,
151 sizeof(cptables[0]), cmp_codepage ))) return NULL;
156 /* enum valid codepages */
157 const union cptable *cp_enum_table( unsigned int index )
159 if (index >= NB_CODEPAGES) return NULL;
160 return cptables[index];