ReactOS 0.4.16-dev-340-g0540c21
cptable.c File Reference
#include <stdlib.h>
#include "wine/unicode.h"
Include dependency graph for cptable.c:

Go to the source code of this file.

Macros

#define ARRAY_SIZE(x)   (sizeof(x) / sizeof((x)[0]))
 

Functions

static int cmp_codepage (const void *codepage, const void *entry)
 
const union cptablewine_cp_get_table (unsigned int codepage)
 
const union cptablewine_cp_enum_table (unsigned int index)
 

Variables

union cptable cptable_037
 
union cptable cptable_424
 
union cptable cptable_437
 
union cptable cptable_500
 
union cptable cptable_737
 
union cptable cptable_775
 
union cptable cptable_850
 
union cptable cptable_852
 
union cptable cptable_855
 
union cptable cptable_856
 
union cptable cptable_857
 
union cptable cptable_860
 
union cptable cptable_861
 
union cptable cptable_862
 
union cptable cptable_863
 
union cptable cptable_864
 
union cptable cptable_865
 
union cptable cptable_866
 
union cptable cptable_869
 
union cptable cptable_874
 
union cptable cptable_875
 
union cptable cptable_878
 
union cptable cptable_932
 
union cptable cptable_936
 
union cptable cptable_949
 
union cptable cptable_950
 
union cptable cptable_1006
 
union cptable cptable_1026
 
union cptable cptable_1250
 
union cptable cptable_1251
 
union cptable cptable_1252
 
union cptable cptable_1253
 
union cptable cptable_1254
 
union cptable cptable_1255
 
union cptable cptable_1256
 
union cptable cptable_1257
 
union cptable cptable_1258
 
union cptable cptable_1361
 
union cptable cptable_10000
 
union cptable cptable_10001
 
union cptable cptable_10002
 
union cptable cptable_10003
 
union cptable cptable_10004
 
union cptable cptable_10005
 
union cptable cptable_10006
 
union cptable cptable_10007
 
union cptable cptable_10008
 
union cptable cptable_10010
 
union cptable cptable_10017
 
union cptable cptable_10021
 
union cptable cptable_10029
 
union cptable cptable_10079
 
union cptable cptable_10081
 
union cptable cptable_10082
 
union cptable cptable_20127
 
union cptable cptable_20866
 
union cptable cptable_20932
 
union cptable cptable_21866
 
union cptable cptable_28591
 
union cptable cptable_28592
 
union cptable cptable_28593
 
union cptable cptable_28594
 
union cptable cptable_28595
 
union cptable cptable_28596
 
union cptable cptable_28597
 
union cptable cptable_28598
 
union cptable cptable_28599
 
union cptable cptable_28600
 
union cptable cptable_28601
 
union cptable cptable_28603
 
union cptable cptable_28604
 
union cptable cptable_28605
 
union cptable cptable_28606
 
static const union cptable *const cptables [73]
 

Macro Definition Documentation

◆ ARRAY_SIZE

#define ARRAY_SIZE (   x)    (sizeof(x) / sizeof((x)[0]))

Definition at line 26 of file cptable.c.

Function Documentation

◆ cmp_codepage()

static int cmp_codepage ( const void codepage,
const void entry 
)
static

Definition at line 185 of file cptable.c.

186{
187 return *(const unsigned int *)codepage - (*(const union cptable *const *)entry)->info.codepage;
188}
uint32_t entry
Definition: isohybrid.c:63
int codepage
Definition: win_iconv.c:156

Referenced by wine_cp_get_table().

◆ wine_cp_enum_table()

const union cptable * wine_cp_enum_table ( unsigned int  index)

Definition at line 203 of file cptable.c.

204{
205 if (index >= ARRAY_SIZE( cptables )) return NULL;
206 return cptables[index];
207}
#define index(s, c)
Definition: various.h:29
#define ARRAY_SIZE(x)
Definition: cptable.c:26
static const union cptable *const cptables[73]
Definition: cptable.c:105
#define NULL
Definition: types.h:112
GLuint index
Definition: glext.h:6031

Referenced by EnumSystemCodePagesA(), and EnumSystemCodePagesW().

◆ wine_cp_get_table()

const union cptable * wine_cp_get_table ( unsigned int  codepage)

Definition at line 192 of file cptable.c.

193{
194 const union cptable **res;
195
197 sizeof(cptables[0]), cmp_codepage ))) return NULL;
198 return *res;
199}
static int cmp_codepage(const void *codepage, const void *entry)
Definition: cptable.c:185
GLuint res
Definition: glext.h:9613
#define bsearch

Referenced by get_codepage_table(), IsValidCodePage(), LOCALE_Init(), and SetCPGlobal().

Variable Documentation

◆ cptable_037

union cptable cptable_037
extern

Definition at line 685 of file c_037.c.

◆ cptable_10000

union cptable cptable_10000
extern

Definition at line 685 of file c_10000.c.

◆ cptable_10001

union cptable cptable_10001
extern

Definition at line 5646 of file c_10001.c.

◆ cptable_10002

union cptable cptable_10002
extern

Definition at line 6541 of file c_10002.c.

◆ cptable_10003

union cptable cptable_10003
extern

Definition at line 8246 of file c_10003.c.

◆ cptable_10004

union cptable cptable_10004
extern

Definition at line 763 of file c_10004.c.

◆ cptable_10005

union cptable cptable_10005
extern

Definition at line 780 of file c_10005.c.

◆ cptable_10006

union cptable cptable_10006
extern

Definition at line 690 of file c_10006.c.

◆ cptable_10007

union cptable cptable_10007
extern

Definition at line 753 of file c_10007.c.

◆ cptable_10008

union cptable cptable_10008
extern

Definition at line 6304 of file c_10008.c.

◆ cptable_10010

union cptable cptable_10010
extern

Definition at line 718 of file c_10010.c.

◆ cptable_10017

union cptable cptable_10017
extern

Definition at line 753 of file c_10017.c.

◆ cptable_10021

union cptable cptable_10021
extern

Definition at line 718 of file c_10021.c.

◆ cptable_10029

union cptable cptable_10029
extern

Definition at line 685 of file c_10029.c.

◆ cptable_1006

union cptable cptable_1006
extern

Definition at line 722 of file c_1006.c.

◆ cptable_10079

union cptable cptable_10079
extern

Definition at line 685 of file c_10079.c.

◆ cptable_10081

union cptable cptable_10081
extern

Definition at line 713 of file c_10081.c.

◆ cptable_10082

union cptable cptable_10082
extern

Definition at line 718 of file c_10082.c.

◆ cptable_1026

union cptable cptable_1026
extern

Definition at line 685 of file c_1026.c.

◆ cptable_1250

union cptable cptable_1250
extern

Definition at line 579 of file c_1250.c.

◆ cptable_1251

union cptable cptable_1251
extern

Definition at line 415 of file c_1251.c.

◆ cptable_1252

union cptable cptable_1252
extern

Definition at line 577 of file c_1252.c.

◆ cptable_1253

union cptable cptable_1253
extern

Definition at line 427 of file c_1253.c.

◆ cptable_1254

union cptable cptable_1254
extern

Definition at line 579 of file c_1254.c.

◆ cptable_1255

union cptable cptable_1255
extern

Definition at line 320 of file c_1255.c.

◆ cptable_1256

union cptable cptable_1256
extern

Definition at line 354 of file c_1256.c.

◆ cptable_1257

union cptable cptable_1257
extern

Definition at line 278 of file c_1257.c.

◆ cptable_1258

union cptable cptable_1258
extern

Definition at line 312 of file c_1258.c.

◆ cptable_1361

union cptable cptable_1361
extern

Definition at line 8660 of file c_1361.c.

◆ cptable_20127

union cptable cptable_20127
extern

Definition at line 684 of file c_20127.c.

◆ cptable_20866

union cptable cptable_20866
extern

Definition at line 753 of file c_20866.c.

◆ cptable_20932

union cptable cptable_20932
extern

Definition at line 6268 of file c_20932.c.

◆ cptable_21866

union cptable cptable_21866
extern

Definition at line 753 of file c_21866.c.

◆ cptable_28591

union cptable cptable_28591
extern

Definition at line 685 of file c_28591.c.

◆ cptable_28592

union cptable cptable_28592
extern

Definition at line 685 of file c_28592.c.

◆ cptable_28593

union cptable cptable_28593
extern

Definition at line 718 of file c_28593.c.

◆ cptable_28594

union cptable cptable_28594
extern

Definition at line 685 of file c_28594.c.

◆ cptable_28595

union cptable cptable_28595
extern

Definition at line 753 of file c_28595.c.

◆ cptable_28596

union cptable cptable_28596
extern

Definition at line 749 of file c_28596.c.

◆ cptable_28597

union cptable cptable_28597
extern

Definition at line 718 of file c_28597.c.

◆ cptable_28598

union cptable cptable_28598
extern

Definition at line 746 of file c_28598.c.

◆ cptable_28599

union cptable cptable_28599
extern

Definition at line 685 of file c_28599.c.

◆ cptable_28600

union cptable cptable_28600
extern

Definition at line 685 of file c_28600.c.

◆ cptable_28601

union cptable cptable_28601
extern

Definition at line 718 of file c_28601.c.

◆ cptable_28603

union cptable cptable_28603
extern

Definition at line 685 of file c_28603.c.

◆ cptable_28604

union cptable cptable_28604
extern

Definition at line 685 of file c_28604.c.

◆ cptable_28605

union cptable cptable_28605
extern

Definition at line 685 of file c_28605.c.

◆ cptable_28606

union cptable cptable_28606
extern

Definition at line 685 of file c_28606.c.

◆ cptable_424

union cptable cptable_424
extern

Definition at line 716 of file c_424.c.

◆ cptable_437

union cptable cptable_437
extern

Definition at line 723 of file c_437.c.

◆ cptable_500

union cptable cptable_500
extern

Definition at line 685 of file c_500.c.

◆ cptable_737

union cptable cptable_737
extern

Definition at line 723 of file c_737.c.

◆ cptable_775

union cptable cptable_775
extern

Definition at line 718 of file c_775.c.

◆ cptable_850

union cptable cptable_850
extern

Definition at line 718 of file c_850.c.

◆ cptable_852

union cptable cptable_852
extern

Definition at line 718 of file c_852.c.

◆ cptable_855

union cptable cptable_855
extern

Definition at line 786 of file c_855.c.

◆ cptable_856

union cptable cptable_856
extern

Definition at line 716 of file c_856.c.

◆ cptable_857

union cptable cptable_857
extern

Definition at line 746 of file c_857.c.

◆ cptable_860

union cptable cptable_860
extern

Definition at line 723 of file c_860.c.

◆ cptable_861

union cptable cptable_861
extern

Definition at line 723 of file c_861.c.

◆ cptable_862

union cptable cptable_862
extern

Definition at line 754 of file c_862.c.

◆ cptable_863

union cptable cptable_863
extern

Definition at line 723 of file c_863.c.

◆ cptable_864

union cptable cptable_864
extern

Definition at line 745 of file c_864.c.

◆ cptable_865

union cptable cptable_865
extern

Definition at line 723 of file c_865.c.

◆ cptable_866

union cptable cptable_866
extern

Definition at line 786 of file c_866.c.

◆ cptable_869

union cptable cptable_869
extern

Definition at line 723 of file c_869.c.

◆ cptable_874

union cptable cptable_874
extern

Definition at line 422 of file c_874.c.

◆ cptable_875

union cptable cptable_875
extern

Definition at line 690 of file c_875.c.

◆ cptable_878

union cptable cptable_878
extern

Definition at line 753 of file c_878.c.

◆ cptable_932

union cptable cptable_932
extern

Definition at line 5591 of file c_932.c.

◆ cptable_936

union cptable cptable_936
extern

Definition at line 7940 of file c_936.c.

◆ cptable_949

union cptable cptable_949
extern

Definition at line 9098 of file c_949.c.

◆ cptable_950

union cptable cptable_950
extern

Definition at line 8347 of file c_950.c.

◆ cptables

const union cptable* const cptables[73]
static

Definition at line 105 of file cptable.c.

Referenced by wine_cp_enum_table(), and wine_cp_get_table().