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
;
68 static const union cptable
* const cptables
[54] =
125 /* ### cpmap end ### */
126 /* Everything above this line is generated automatically by cpmap.pl */
128 #define NB_CODEPAGES (sizeof(cptables)/sizeof(cptables[0]))
131 static int cmp_codepage( const void *codepage
, const void *entry
)
133 return (unsigned int)codepage
- (*(union cptable
**)entry
)->info
.codepage
;
137 /* get the table of a given code page */
138 const union cptable
*cp_get_table( unsigned int codepage
)
140 const union cptable
**res
;
142 if (!(res
= bsearch( (void *)codepage
, cptables
, NB_CODEPAGES
,
143 sizeof(cptables
[0]), cmp_codepage
))) return NULL
;
148 /* enum valid codepages */
149 const union cptable
*cp_enum_table( unsigned int index
)
151 if (index
>= NB_CODEPAGES
) return NULL
;
152 return cptables
[index
];