ReactOS  0.4.14-dev-998-g623dd26
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 }
int codepage
Definition: win_iconv.c:156
uint32_t entry
Definition: isohybrid.c:63

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 }
smooth NULL
Definition: ftsmooth.c:416
GLuint index
Definition: glext.h:6031
#define index(s, c)
Definition: various.h:29
static const union cptable *const cptables[73]
Definition: cptable.c:105
#define ARRAY_SIZE(x)
Definition: cptable.c:26

◆ 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 }
int codepage
Definition: win_iconv.c:156
smooth NULL
Definition: ftsmooth.c:416
static const union cptable *const cptables[73]
Definition: cptable.c:105
static int cmp_codepage(const void *codepage, const void *entry)
Definition: cptable.c:185
GLuint res
Definition: glext.h:9613
#define ARRAY_SIZE(x)
Definition: cptable.c:26
#define bsearch

Variable Documentation

◆ cptable_037

union cptable cptable_037

Definition at line 685 of file c_037.c.

◆ cptable_10000

union cptable cptable_10000

Definition at line 685 of file c_10000.c.

◆ cptable_10001

union cptable cptable_10001

Definition at line 5646 of file c_10001.c.

◆ cptable_10002

union cptable cptable_10002

Definition at line 6541 of file c_10002.c.

◆ cptable_10003

union cptable cptable_10003

Definition at line 8246 of file c_10003.c.

◆ cptable_10004

union cptable cptable_10004

Definition at line 763 of file c_10004.c.

◆ cptable_10005

union cptable cptable_10005

Definition at line 780 of file c_10005.c.

◆ cptable_10006

union cptable cptable_10006

Definition at line 690 of file c_10006.c.

◆ cptable_10007

union cptable cptable_10007

Definition at line 753 of file c_10007.c.

◆ cptable_10008

union cptable cptable_10008

Definition at line 6304 of file c_10008.c.

◆ cptable_10010

union cptable cptable_10010

Definition at line 718 of file c_10010.c.

◆ cptable_10017

union cptable cptable_10017

Definition at line 753 of file c_10017.c.

◆ cptable_10021

union cptable cptable_10021

Definition at line 718 of file c_10021.c.

◆ cptable_10029

union cptable cptable_10029

Definition at line 685 of file c_10029.c.

◆ cptable_1006

union cptable cptable_1006

Definition at line 722 of file c_1006.c.

◆ cptable_10079

union cptable cptable_10079

Definition at line 685 of file c_10079.c.

◆ cptable_10081

union cptable cptable_10081

Definition at line 713 of file c_10081.c.

◆ cptable_10082

union cptable cptable_10082

Definition at line 718 of file c_10082.c.

◆ cptable_1026

union cptable cptable_1026

Definition at line 685 of file c_1026.c.

◆ cptable_1250

union cptable cptable_1250

Definition at line 579 of file c_1250.c.

◆ cptable_1251

union cptable cptable_1251

Definition at line 415 of file c_1251.c.

◆ cptable_1252

union cptable cptable_1252

Definition at line 577 of file c_1252.c.

◆ cptable_1253

union cptable cptable_1253

Definition at line 427 of file c_1253.c.

◆ cptable_1254

union cptable cptable_1254

Definition at line 579 of file c_1254.c.

◆ cptable_1255

union cptable cptable_1255

Definition at line 320 of file c_1255.c.

◆ cptable_1256

union cptable cptable_1256

Definition at line 354 of file c_1256.c.

◆ cptable_1257

union cptable cptable_1257

Definition at line 278 of file c_1257.c.

◆ cptable_1258

union cptable cptable_1258

Definition at line 312 of file c_1258.c.

◆ cptable_1361

union cptable cptable_1361

Definition at line 8660 of file c_1361.c.

◆ cptable_20127

union cptable cptable_20127

Definition at line 684 of file c_20127.c.

◆ cptable_20866

union cptable cptable_20866

Definition at line 753 of file c_20866.c.

◆ cptable_20932

union cptable cptable_20932

Definition at line 6268 of file c_20932.c.

◆ cptable_21866

union cptable cptable_21866

Definition at line 753 of file c_21866.c.

◆ cptable_28591

union cptable cptable_28591

Definition at line 685 of file c_28591.c.

◆ cptable_28592

union cptable cptable_28592

Definition at line 685 of file c_28592.c.

◆ cptable_28593

union cptable cptable_28593

Definition at line 718 of file c_28593.c.

◆ cptable_28594

union cptable cptable_28594

Definition at line 685 of file c_28594.c.

◆ cptable_28595

union cptable cptable_28595

Definition at line 753 of file c_28595.c.

◆ cptable_28596

union cptable cptable_28596

Definition at line 749 of file c_28596.c.

◆ cptable_28597

union cptable cptable_28597

Definition at line 718 of file c_28597.c.

◆ cptable_28598

union cptable cptable_28598

Definition at line 746 of file c_28598.c.

◆ cptable_28599

union cptable cptable_28599

Definition at line 685 of file c_28599.c.

◆ cptable_28600

union cptable cptable_28600

Definition at line 685 of file c_28600.c.

◆ cptable_28601

union cptable cptable_28601

Definition at line 718 of file c_28601.c.

◆ cptable_28603

union cptable cptable_28603

Definition at line 685 of file c_28603.c.

◆ cptable_28604

union cptable cptable_28604

Definition at line 685 of file c_28604.c.

◆ cptable_28605

union cptable cptable_28605

Definition at line 685 of file c_28605.c.

◆ cptable_28606

union cptable cptable_28606

Definition at line 685 of file c_28606.c.

◆ cptable_424

union cptable cptable_424

Definition at line 716 of file c_424.c.

◆ cptable_437

union cptable cptable_437

Definition at line 723 of file c_437.c.

◆ cptable_500

union cptable cptable_500

Definition at line 685 of file c_500.c.

◆ cptable_737

union cptable cptable_737

Definition at line 723 of file c_737.c.

◆ cptable_775

union cptable cptable_775

Definition at line 718 of file c_775.c.

◆ cptable_850

union cptable cptable_850

Definition at line 718 of file c_850.c.

◆ cptable_852

union cptable cptable_852

Definition at line 718 of file c_852.c.

◆ cptable_855

union cptable cptable_855

Definition at line 786 of file c_855.c.

◆ cptable_856

union cptable cptable_856

Definition at line 716 of file c_856.c.

◆ cptable_857

union cptable cptable_857

Definition at line 746 of file c_857.c.

◆ cptable_860

union cptable cptable_860

Definition at line 723 of file c_860.c.

◆ cptable_861

union cptable cptable_861

Definition at line 723 of file c_861.c.

◆ cptable_862

union cptable cptable_862

Definition at line 754 of file c_862.c.

◆ cptable_863

union cptable cptable_863

Definition at line 723 of file c_863.c.

◆ cptable_864

union cptable cptable_864

Definition at line 745 of file c_864.c.

◆ cptable_865

union cptable cptable_865

Definition at line 723 of file c_865.c.

◆ cptable_866

union cptable cptable_866

Definition at line 786 of file c_866.c.

◆ cptable_869

union cptable cptable_869

Definition at line 723 of file c_869.c.

◆ cptable_874

union cptable cptable_874

Definition at line 422 of file c_874.c.

◆ cptable_875

union cptable cptable_875

Definition at line 690 of file c_875.c.

◆ cptable_878

union cptable cptable_878

Definition at line 753 of file c_878.c.

◆ cptable_932

union cptable cptable_932

Definition at line 5591 of file c_932.c.

◆ cptable_936

union cptable cptable_936

Definition at line 7940 of file c_936.c.

◆ cptable_949

union cptable cptable_949

Definition at line 9098 of file c_949.c.

◆ cptable_950

union cptable cptable_950

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().