Back to index

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

Go to the source code of this file.

Defines

#define CHARSET_NAME   "SJIS//"
#define FROM_LOOP   from_sjis
#define TO_LOOP   to_sjis
#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 cjk_block1 [703]
static const uint16_t cjk_block2 [94]
static const uint16_t cjk_block3 [4413]
static const uint16_t cjk_block4 [2021]
static const char from_ucs4_lat1 [0xf8][2]
static const char from_ucs4_greek [193][2]
static const char from_ucs4_cjk [32657][2]
static const char from_ucs4_extra [0x100][2]

Define Documentation

#define BODY

Definition at line 4430 of file sjis.c.

#define BODY

Definition at line 4430 of file sjis.c.

#define CHARSET_NAME   "SJIS//"

Definition at line 4316 of file sjis.c.

#define DEFINE_FINI   1

Definition at line 4320 of file sjis.c.

#define DEFINE_INIT   1

Definition at line 4319 of file sjis.c.

#define FROM_LOOP   from_sjis

Definition at line 4317 of file sjis.c.

#define LOOP_NEED_FLAGS

Definition at line 4478 of file sjis.c.

#define LOOP_NEED_FLAGS

Definition at line 4478 of file sjis.c.

#define LOOPFCT   FROM_LOOP

Definition at line 4429 of file sjis.c.

#define LOOPFCT   TO_LOOP

Definition at line 4429 of file sjis.c.

#define MAX_NEEDED_FROM   2

Definition at line 4322 of file sjis.c.

Definition at line 4327 of file sjis.c.

Definition at line 4428 of file sjis.c.

#define MIN_NEEDED_FROM   1

Definition at line 4321 of file sjis.c.

Definition at line 4426 of file sjis.c.

Definition at line 4426 of file sjis.c.

Definition at line 4427 of file sjis.c.

Definition at line 4427 of file sjis.c.

#define MIN_NEEDED_TO   4

Definition at line 4323 of file sjis.c.

#define ONEBYTE_BODY
Value:
{                                                                    \
    if (c < 0x80)                                                    \
      {                                                                     \
       if (c == 0x5c)                                                       \
         return 0xa5;                                                       \
       if (c == 0x7e)                                                       \
         return 0x203e;                                              \
       return c;                                                     \
      }                                                                     \
    if (c >= 0xa1 && c <= 0xdf)                                             \
      return 0xfec0 + c;                                             \
    return WEOF;                                                     \
  }

Definition at line 4408 of file sjis.c.

#define TO_LOOP   to_sjis

Definition at line 4318 of file sjis.c.


Variable Documentation

const uint16_t cjk_block1[703] [static]

Definition at line 49 of file sjis.c.

const uint16_t cjk_block2[94] [static]
Initial value:
{
  [  0] = 0x4E9C, [  1] = 0x5516, [  2] = 0x5A03, [  3] = 0x963F,
  [  4] = 0x54C0, [  5] = 0x611B, [  6] = 0x6328, [  7] = 0x59F6,
  [  8] = 0x9022, [  9] = 0x8475, [ 10] = 0x831C, [ 11] = 0x7A50,
  [ 12] = 0x60AA, [ 13] = 0x63E1, [ 14] = 0x6E25, [ 15] = 0x65ED,
  [ 16] = 0x8466, [ 17] = 0x82A6, [ 18] = 0x9BF5, [ 19] = 0x6893,
  [ 20] = 0x5727, [ 21] = 0x65A1, [ 22] = 0x6271, [ 23] = 0x5B9B,
  [ 24] = 0x59D0, [ 25] = 0x867B, [ 26] = 0x98F4, [ 27] = 0x7D62,
  [ 28] = 0x7DBE, [ 29] = 0x9B8E, [ 30] = 0x6216, [ 31] = 0x7C9F,
  [ 32] = 0x88B7, [ 33] = 0x5B89, [ 34] = 0x5EB5, [ 35] = 0x6309,
  [ 36] = 0x6697, [ 37] = 0x6848, [ 38] = 0x95C7, [ 39] = 0x978D,
  [ 40] = 0x674F, [ 41] = 0x4EE5, [ 42] = 0x4F0A, [ 43] = 0x4F4D,
  [ 44] = 0x4F9D, [ 45] = 0x5049, [ 46] = 0x56F2, [ 47] = 0x5937,
  [ 48] = 0x59D4, [ 49] = 0x5A01, [ 50] = 0x5C09, [ 51] = 0x60DF,
  [ 52] = 0x610F, [ 53] = 0x6170, [ 54] = 0x6613, [ 55] = 0x6905,
  [ 56] = 0x70BA, [ 57] = 0x754F, [ 58] = 0x7570, [ 59] = 0x79FB,
  [ 60] = 0x7DAD, [ 61] = 0x7DEF, [ 62] = 0x80C3, [ 63] = 0x840E,
  [ 64] = 0x8863, [ 65] = 0x8B02, [ 66] = 0x9055, [ 67] = 0x907A,
  [ 68] = 0x533B, [ 69] = 0x4E95, [ 70] = 0x4EA5, [ 71] = 0x57DF,
  [ 72] = 0x80B2, [ 73] = 0x90C1, [ 74] = 0x78EF, [ 75] = 0x4E00,
  [ 76] = 0x58F1, [ 77] = 0x6EA2, [ 78] = 0x9038, [ 79] = 0x7A32,
  [ 80] = 0x8328, [ 81] = 0x828B, [ 82] = 0x9C2F, [ 83] = 0x5141,
  [ 84] = 0x5370, [ 85] = 0x54BD, [ 86] = 0x54E1, [ 87] = 0x56E0,
  [ 88] = 0x59FB, [ 89] = 0x5F15, [ 90] = 0x98F2, [ 91] = 0x6DEB,
  [ 92] = 0x80E4, [ 93] = 0x852D
}

Definition at line 207 of file sjis.c.

const uint16_t cjk_block3[4413] [static]

Definition at line 257 of file sjis.c.

const uint16_t cjk_block4[2021] [static]

Definition at line 1356 of file sjis.c.

const char from_ucs4_cjk[32657][2] [static]

Definition at line 2031 of file sjis.c.

const char from_ucs4_extra[0x100][2] [static]

Definition at line 4256 of file sjis.c.

const char from_ucs4_greek[193][2] [static]

Definition at line 1962 of file sjis.c.

const char from_ucs4_lat1[0xf8][2] [static]

Definition at line 1888 of file sjis.c.