Back to index

glibc  2.9
Defines | Variables
big5.c File Reference
#include <dlfcn.h>
#include <gconv.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <wchar.h>
#include <iconv/loop.c>
#include <iconv/skeleton.c>

Go to the source code of this file.

Defines

#define CHARSET_NAME   "BIG5//"
#define FROM_LOOP   from_big5
#define TO_LOOP   to_big5
#define DEFINE_INIT   1
#define DEFINE_FINI   1
#define MIN_NEEDED_FROM   1
#define MAX_NEEDED_FROM   2
#define MIN_NEEDED_TO   4
#define MIN_NEEDED_INPUT   MIN_NEEDED_FROM
#define MAX_NEEDED_INPUT   MAX_NEEDED_FROM
#define MIN_NEEDED_OUTPUT   MIN_NEEDED_TO
#define LOOPFCT   FROM_LOOP
#define BODY
#define LOOP_NEED_FLAGS
#define ONEBYTE_BODY
#define MIN_NEEDED_INPUT   MIN_NEEDED_TO
#define MIN_NEEDED_OUTPUT   MIN_NEEDED_FROM
#define MAX_NEEDED_OUTPUT   MAX_NEEDED_FROM
#define LOOPFCT   TO_LOOP
#define BODY
#define LOOP_NEED_FLAGS

Variables

static const uint16_t big5_to_ucs [13973]
static const char from_ucs4_tab1 [256][2]
static const char from_ucs4_tab2 [][2]
static const char from_ucs4_tab3 [][2]
static const char from_ucs4_tab4 [][2]
static const char from_ucs4_tab5 [][2]
static const char from_ucs4_tab6 [][2]
static const char from_ucs4_tab7 [][2]
static const char from_ucs4_tab8 [][2]
static const char from_ucs4_tab9 [][2]
static const char from_ucs4_tab10 [][2]
static const char from_ucs4_tab11 [][2]
static const char from_ucs4_tab12 [][2]
static const char from_ucs4_tab13 [][2]
static const char from_ucs4_tab14 [][2]
static const char from_ucs4_tab15 [][2]

Define Documentation

#define BODY

Definition at line 8464 of file big5.c.

#define BODY

Definition at line 8464 of file big5.c.

#define CHARSET_NAME   "BIG5//"

Definition at line 8379 of file big5.c.

#define DEFINE_FINI   1

Definition at line 8383 of file big5.c.

#define DEFINE_INIT   1

Definition at line 8382 of file big5.c.

#define FROM_LOOP   from_big5

Definition at line 8380 of file big5.c.

#define LOOP_NEED_FLAGS

Definition at line 8580 of file big5.c.

#define LOOP_NEED_FLAGS

Definition at line 8580 of file big5.c.

#define LOOPFCT   FROM_LOOP

Definition at line 8463 of file big5.c.

#define LOOPFCT   TO_LOOP

Definition at line 8463 of file big5.c.

#define MAX_NEEDED_FROM   2

Definition at line 8385 of file big5.c.

Definition at line 8391 of file big5.c.

Definition at line 8462 of file big5.c.

#define MIN_NEEDED_FROM   1

Definition at line 8384 of file big5.c.

Definition at line 8460 of file big5.c.

Definition at line 8460 of file big5.c.

Definition at line 8461 of file big5.c.

Definition at line 8461 of file big5.c.

#define MIN_NEEDED_TO   4

Definition at line 8386 of file big5.c.

#define ONEBYTE_BODY
Value:
{                                                                    \
    if (c <= 0x80)                                                   \
      return c;                                                             \
    else                                                             \
      return WEOF;                                                   \
  }

Definition at line 8449 of file big5.c.

#define TO_LOOP   to_big5

Definition at line 8381 of file big5.c.


Variable Documentation

const uint16_t big5_to_ucs[13973] [static]

Definition at line 58 of file big5.c.

const char from_ucs4_tab1[256][2] [static]

Definition at line 3546 of file big5.c.

const char from_ucs4_tab10[][2] [static]
Initial value:
{
  [0x0000] = "\xa3\x74", [0x0001] = "\xa3\x75", [0x0002] = "\xa3\x76",
  [0x0003] = "\xa3\x77", [0x0004] = "\xa3\x78", [0x0005] = "\xa3\x79",
  [0x0006] = "\xa3\x7a", [0x0007] = "\xa3\x7b", [0x0008] = "\xa3\x7c",
  [0x0009] = "\xa3\x7d", [0x000a] = "\xa3\x7e", [0x000b] = "\xa3\xa1",
  [0x000c] = "\xa3\xa2", [0x000d] = "\xa3\xa3", [0x000e] = "\xa3\xa4",
  [0x000f] = "\xa3\xa5", [0x0010] = "\xa3\xa6", [0x0011] = "\xa3\xa7",
  [0x0012] = "\xa3\xa8", [0x0013] = "\xa3\xa9", [0x0014] = "\xa3\xaa",
  [0x0015] = "\xa3\xab", [0x0016] = "\xa3\xac", [0x0017] = "\xa3\xad",
  [0x0018] = "\xa3\xae", [0x0019] = "\xa3\xaf", [0x001a] = "\xa3\xb0",
  [0x001b] = "\xa3\xb1", [0x001c] = "\xa3\xb2", [0x001d] = "\xa3\xb3",
  [0x001e] = "\xa3\xb4", [0x001f] = "\xa3\xb5", [0x0020] = "\xa3\xb6",
  [0x0021] = "\xa3\xb7", [0x0022] = "\xa3\xb8", [0x0023] = "\xa3\xb9",
  [0x0024] = "\xa3\xba",
}

Definition at line 3788 of file big5.c.

const char from_ucs4_tab11[][2] [static]
Initial value:
{
  [0x0000] = "\xa2\x55", [0x0001] = "\xa2\x56", [0x000e] = "\xa2\x50",
  [0x000f] = "\xa2\x51", [0x0010] = "\xa2\x52", [0x0013] = "\xa2\x54",
  [0x0036] = "\xa2\x57", [0x0040] = "\xa2\x53", [0x0043] = "\xa1\xeb",
  [0x0044] = "\xa1\xea", [0x0047] = "\xa2\x4f",
}

Definition at line 3806 of file big5.c.

const char from_ucs4_tab12[][2] [static]

Definition at line 3815 of file big5.c.

const char from_ucs4_tab13[][2] [static]

Definition at line 8176 of file big5.c.

const char from_ucs4_tab14[][2] [static]
Initial value:
{
  [0x0000] = "\xa1\x4a", [0x0001] = "\xa1\x57", [0x0003] = "\xa1\x59",
  [0x0004] = "\xa1\x5b", [0x0005] = "\xa1\x5f", [0x0006] = "\xa1\x60",
  [0x0007] = "\xa1\x63", [0x0008] = "\xa1\x64", [0x0009] = "\xa1\x67",
  [0x000a] = "\xa1\x68", [0x000b] = "\xa1\x6b", [0x000c] = "\xa1\x6c",
  [0x000d] = "\xa1\x6f", [0x000e] = "\xa1\x70", [0x000f] = "\xa1\x73",
  [0x0010] = "\xa1\x74", [0x0011] = "\xa1\x77", [0x0012] = "\xa1\x78",
  [0x0013] = "\xa1\x7b", [0x0014] = "\xa1\x7c", [0x0019] = "\xa1\xc6",
  [0x001a] = "\xa1\xc7", [0x001b] = "\xa1\xca", [0x001c] = "\xa1\xcb",
  [0x001d] = "\xa1\xc8", [0x001e] = "\xa1\xc9", [0x001f] = "\xa1\x5c",
  [0x0020] = "\xa1\x4d", [0x0021] = "\xa1\x4e", [0x0022] = "\xa1\x4f",
  [0x0024] = "\xa1\x51", [0x0025] = "\xa1\x52", [0x0026] = "\xa1\x53",
  [0x0027] = "\xa1\x54", [0x0029] = "\xa1\x7d", [0x002a] = "\xa1\x7e",
  [0x002b] = "\xa1\xa1", [0x002c] = "\xa1\xa2", [0x002d] = "\xa1\xa3",
  [0x002e] = "\xa1\xa4", [0x002f] = "\xa1\xcc", [0x0030] = "\xa1\xcd",
  [0x0031] = "\xa1\xce", [0x0032] = "\xa1\xde", [0x0033] = "\xa1\xdf",
  [0x0034] = "\xa1\xe0", [0x0035] = "\xa1\xe1", [0x0036] = "\xa1\xe2",
  [0x0038] = "\xa2\x42", [0x0039] = "\xa2\x4c", [0x003a] = "\xa2\x4d",
  [0x003b] = "\xa2\x4e",
}

Definition at line 8317 of file big5.c.

const char from_ucs4_tab15[][2] [static]

Definition at line 8340 of file big5.c.

const char from_ucs4_tab2[][2] [static]
Initial value:
{
  [0x0000] = "\xa3\xbe", [0x0002] = "\xa3\xbc", [0x0003] = "\xa3\xbd",
  [0x0004] = "\xa3\xbf", [0x0006] = "\xa1\xc5", [0x0012] = "\xa3\xbb",
}

Definition at line 3674 of file big5.c.

const char from_ucs4_tab3[][2] [static]
Initial value:
{
  [0x0000] = "\xa3\x44", [0x0001] = "\xa3\x45", [0x0002] = "\xa3\x46",
  [0x0003] = "\xa3\x47", [0x0004] = "\xa3\x48", [0x0005] = "\xa3\x49",
  [0x0006] = "\xa3\x4a", [0x0007] = "\xa3\x4b", [0x0008] = "\xa3\x4c",
  [0x0009] = "\xa3\x4d", [0x000a] = "\xa3\x4e", [0x000b] = "\xa3\x4f",
  [0x000c] = "\xa3\x50", [0x000d] = "\xa3\x51", [0x000e] = "\xa3\x52",
  [0x000f] = "\xa3\x53", [0x0010] = "\xa3\x54", [0x0012] = "\xa3\x55",
  [0x0013] = "\xa3\x56", [0x0014] = "\xa3\x57", [0x0015] = "\xa3\x58",
  [0x0016] = "\xa3\x59", [0x0017] = "\xa3\x5a", [0x0018] = "\xa3\x5b",
  [0x0020] = "\xa3\x5c", [0x0021] = "\xa3\x5d", [0x0022] = "\xa3\x5e",
  [0x0023] = "\xa3\x5f", [0x0024] = "\xa3\x60", [0x0025] = "\xa3\x61",
  [0x0026] = "\xa3\x62", [0x0027] = "\xa3\x63", [0x0028] = "\xa3\x64",
  [0x0029] = "\xa3\x65", [0x002a] = "\xa3\x66", [0x002b] = "\xa3\x67",
  [0x002c] = "\xa3\x68", [0x002d] = "\xa3\x69", [0x002e] = "\xa3\x6a",
  [0x002f] = "\xa3\x6b", [0x0030] = "\xa3\x6c", [0x0032] = "\xa3\x6d",
  [0x0033] = "\xa3\x6e", [0x0034] = "\xa3\x6f", [0x0035] = "\xa3\x70",
  [0x0036] = "\xa3\x71", [0x0037] = "\xa3\x72", [0x0038] = "\xa3\x73",
}

Definition at line 3681 of file big5.c.

const char from_ucs4_tab4[][2] [static]
Initial value:
{
  [0x0000] = "\xa1\x56", [0x0001] = "\xa1\x58", [0x0005] = "\xa1\xa5",
  [0x0006] = "\xa1\xa6", [0x0009] = "\xa1\xa7", [0x000a] = "\xa1\xa8",
  [0x0012] = "\xa1\x4c", [0x0013] = "\xa1\x4b", [0x0014] = "\xa1\x45",
  [0x001f] = "\xa1\xac", [0x0022] = "\xa1\xab", [0x0028] = "\xa1\xb0",
}

Definition at line 3702 of file big5.c.

const char from_ucs4_tab5[][2] [static]
Initial value:
{
  [0x0000] = "\xa2\xb9", [0x0001] = "\xa2\xba", [0x0002] = "\xa2\xbb",
  [0x0003] = "\xa2\xbc", [0x0004] = "\xa2\xbd", [0x0005] = "\xa2\xbe",
  [0x0006] = "\xa2\xbf", [0x0007] = "\xa2\xc0", [0x0008] = "\xa2\xc1",
  [0x0009] = "\xa2\xc2",
}

Definition at line 3711 of file big5.c.

const char from_ucs4_tab6[][2] [static]
Initial value:
{
  [0x0000] = "\xa1\xf6", [0x0001] = "\xa1\xf4", [0x0002] = "\xa1\xf7",
  [0x0003] = "\xa1\xf5", [0x0006] = "\xa1\xf8", [0x0007] = "\xa1\xf9",
  [0x0008] = "\xa1\xfb", [0x0009] = "\xa1\xfa",
}

Definition at line 3720 of file big5.c.

const char from_ucs4_tab7[][2] [static]
Initial value:
{
  [0x0000] = "\xa2\x41", [0x0005] = "\xa1\xd4", [0x0009] = "\xa1\xdb",
  [0x000a] = "\xa1\xe8", [0x000b] = "\xa1\xe7", [0x000e] = "\xa1\xfd",
  [0x0010] = "\xa1\xfc", [0x0014] = "\xa1\xe4", [0x0015] = "\xa1\xe5",
  [0x0016] = "\xa1\xec", [0x0019] = "\xa1\xed", [0x001f] = "\xa1\xef",
  [0x0020] = "\xa1\xee", [0x003d] = "\xa1\xdc", [0x004b] = "\xa1\xda",
  [0x004c] = "\xa1\xdd", [0x0051] = "\xa1\xd8", [0x0052] = "\xa1\xd9",
}

Definition at line 3728 of file big5.c.

const char from_ucs4_tab8[][2] [static]

Definition at line 3739 of file big5.c.

const char from_ucs4_tab9[][2] [static]
Initial value:
{
  [0x0000] = "\xa1\x40", [0x0001] = "\xa1\x42", [0x0002] = "\xa1\x43",
  [0x0003] = "\xa1\xb2", [0x0008] = "\xa1\x71", [0x0009] = "\xa1\x72",
  [0x000a] = "\xa1\x6d", [0x000b] = "\xa1\x6e", [0x000c] = "\xa1\x75",
  [0x000d] = "\xa1\x76", [0x000e] = "\xa1\x79", [0x000f] = "\xa1\x7a",
  [0x0010] = "\xa1\x69", [0x0011] = "\xa1\x6a", [0x0012] = "\xa2\x45",
  [0x0014] = "\xa1\x65", [0x0015] = "\xa1\x66", [0x001d] = "\xa1\xa9",
  [0x001e] = "\xa1\xaa", [0x0021] = "\xa2\xc3", [0x0022] = "\xa2\xc4",
  [0x0023] = "\xa2\xc5", [0x0024] = "\xa2\xc6", [0x0025] = "\xa2\xc7",
  [0x0026] = "\xa2\xc8", [0x0027] = "\xa2\xc9", [0x0028] = "\xa2\xca",
  [0x0029] = "\xa2\xcb",
}

Definition at line 3773 of file big5.c.