Back to index

glibc  2.9
Defines | Enumerations | Variables
iso-2022-jp-3.c File Reference
#include <assert.h>
#include <dlfcn.h>
#include <gconv.h>
#include <stdint.h>
#include <string.h>
#include "jis0201.h"
#include "jis0208.h"
#include "jisx0213.h"
#include <iconv/loop.c>
#include <iconv/skeleton.c>

Go to the source code of this file.

Defines

#define ESC   0x1b
#define CHARSET_NAME   "ISO-2022-JP-3//"
#define FROM_LOOP   from_iso2022jp3_loop
#define TO_LOOP   to_iso2022jp3_loop
#define DEFINE_INIT   1
#define DEFINE_FINI   1
#define FROM_LOOP_MIN_NEEDED_FROM   1
#define FROM_LOOP_MAX_NEEDED_FROM   4
#define FROM_LOOP_MIN_NEEDED_TO   4
#define FROM_LOOP_MAX_NEEDED_TO   8
#define TO_LOOP_MIN_NEEDED_FROM   4
#define TO_LOOP_MAX_NEEDED_FROM   4
#define TO_LOOP_MIN_NEEDED_TO   1
#define TO_LOOP_MAX_NEEDED_TO   6
#define PREPARE_LOOP
#define EXTRA_LOOP_ARGS   , statep
#define EMIT_SHIFT_TO_INIT
#define SAVE_RESET_STATE(Save)
#define MIN_NEEDED_INPUT   FROM_LOOP_MIN_NEEDED_FROM
#define MAX_NEEDED_INPUT   FROM_LOOP_MAX_NEEDED_FROM
#define MIN_NEEDED_OUTPUT   FROM_LOOP_MIN_NEEDED_TO
#define MAX_NEEDED_OUTPUT   FROM_LOOP_MAX_NEEDED_TO
#define LOOPFCT   FROM_LOOP
#define BODY
#define LOOP_NEED_FLAGS
#define EXTRA_LOOP_DECLS   , int *statep
#define INIT_PARAMS   int set = *statep
#define UPDATE_PARAMS   *statep = set
#define COMP_TABLE_IDX_02E5   0
#define COMP_TABLE_LEN_02E5   1
#define COMP_TABLE_IDX_02E9   (COMP_TABLE_IDX_02E5 + COMP_TABLE_LEN_02E5)
#define COMP_TABLE_LEN_02E9   1
#define COMP_TABLE_IDX_0300   (COMP_TABLE_IDX_02E9 + COMP_TABLE_LEN_02E9)
#define COMP_TABLE_LEN_0300   5
#define COMP_TABLE_IDX_0301   (COMP_TABLE_IDX_0300 + COMP_TABLE_LEN_0300)
#define COMP_TABLE_LEN_0301   4
#define COMP_TABLE_IDX_309A   (COMP_TABLE_IDX_0301 + COMP_TABLE_LEN_0301)
#define COMP_TABLE_LEN_309A   14
#define MIN_NEEDED_INPUT   TO_LOOP_MIN_NEEDED_FROM
#define MAX_NEEDED_INPUT   TO_LOOP_MAX_NEEDED_FROM
#define MIN_NEEDED_OUTPUT   TO_LOOP_MIN_NEEDED_TO
#define MAX_NEEDED_OUTPUT   TO_LOOP_MAX_NEEDED_TO
#define LOOPFCT   TO_LOOP
#define BODY
#define LOOP_NEED_FLAGS
#define EXTRA_LOOP_DECLS   , int *statep
#define INIT_PARAMS
#define REINIT_PARAMS
#define UPDATE_PARAMS   *statep = set | (lasttwo << 6)

Enumerations

enum  {
  ASCII_set = 0, JISX0208_1978_set = 1 << 3, JISX0208_1983_set = 2 << 3, JISX0201_Roman_set = 3 << 3,
  JISX0201_Kana_set = 4 << 3, JISX0213_1_2000_set = 5 << 3, JISX0213_2_set = 6 << 3, JISX0213_1_2004_set = 7 << 3,
  CURRENT_SEL_MASK = 7 << 3
}

Variables

struct {
uint16_t base
uint16_t composed
comp_table_data []

Define Documentation

#define BODY

Definition at line 370 of file iso-2022-jp-3.c.

#define BODY

Definition at line 370 of file iso-2022-jp-3.c.

#define CHARSET_NAME   "ISO-2022-JP-3//"

Definition at line 37 of file iso-2022-jp-3.c.

#define COMP_TABLE_IDX_02E5   0
#define COMP_TABLE_LEN_02E5   1
#define COMP_TABLE_LEN_02E9   1
#define COMP_TABLE_LEN_0300   5
#define COMP_TABLE_LEN_0301   4
#define COMP_TABLE_LEN_309A   14
#define DEFINE_FINI   1

Definition at line 41 of file iso-2022-jp-3.c.

#define DEFINE_INIT   1

Definition at line 40 of file iso-2022-jp-3.c.

Definition at line 79 of file iso-2022-jp-3.c.

#define ESC   0x1b

Definition at line 34 of file iso-2022-jp-3.c.

#define EXTRA_LOOP_ARGS   , statep

Definition at line 53 of file iso-2022-jp-3.c.

#define EXTRA_LOOP_DECLS   , int *statep

Definition at line 732 of file iso-2022-jp-3.c.

#define EXTRA_LOOP_DECLS   , int *statep

Definition at line 732 of file iso-2022-jp-3.c.

#define FROM_LOOP   from_iso2022jp3_loop

Definition at line 38 of file iso-2022-jp-3.c.

#define FROM_LOOP_MAX_NEEDED_FROM   4

Definition at line 43 of file iso-2022-jp-3.c.

#define FROM_LOOP_MAX_NEEDED_TO   8

Definition at line 45 of file iso-2022-jp-3.c.

#define FROM_LOOP_MIN_NEEDED_FROM   1

Definition at line 42 of file iso-2022-jp-3.c.

#define FROM_LOOP_MIN_NEEDED_TO   4

Definition at line 44 of file iso-2022-jp-3.c.

#define INIT_PARAMS   int set = *statep

Definition at line 733 of file iso-2022-jp-3.c.

#define INIT_PARAMS
Value:
int set = *statep & CURRENT_SEL_MASK;           \
				uint32_t lasttwo = *statep >> 6

Definition at line 733 of file iso-2022-jp-3.c.

#define LOOP_NEED_FLAGS

Definition at line 731 of file iso-2022-jp-3.c.

#define LOOP_NEED_FLAGS

Definition at line 731 of file iso-2022-jp-3.c.

#define LOOPFCT   FROM_LOOP

Definition at line 369 of file iso-2022-jp-3.c.

#define LOOPFCT   TO_LOOP

Definition at line 369 of file iso-2022-jp-3.c.

Definition at line 366 of file iso-2022-jp-3.c.

Definition at line 366 of file iso-2022-jp-3.c.

Definition at line 368 of file iso-2022-jp-3.c.

Definition at line 368 of file iso-2022-jp-3.c.

Definition at line 365 of file iso-2022-jp-3.c.

Definition at line 365 of file iso-2022-jp-3.c.

Definition at line 367 of file iso-2022-jp-3.c.

Definition at line 367 of file iso-2022-jp-3.c.

#define PREPARE_LOOP
Value:
int saved_state;                                                     \
  int *statep = &data->__statep->__count;

Definition at line 50 of file iso-2022-jp-3.c.

#define REINIT_PARAMS
Value:
do                                       \
                              {                                      \
                                set = *statep & CURRENT_SEL_MASK;           \
                                lasttwo = *statep >> 6;              \
                              }                                      \
                            while (0)

Definition at line 735 of file iso-2022-jp-3.c.

#define SAVE_RESET_STATE (   Save)
Value:
if (Save)                                                            \
    saved_state = *statep;                                           \
  else                                                               \
    *statep = saved_state

Definition at line 136 of file iso-2022-jp-3.c.

#define TO_LOOP   to_iso2022jp3_loop

Definition at line 39 of file iso-2022-jp-3.c.

#define TO_LOOP_MAX_NEEDED_FROM   4

Definition at line 47 of file iso-2022-jp-3.c.

#define TO_LOOP_MAX_NEEDED_TO   6

Definition at line 49 of file iso-2022-jp-3.c.

#define TO_LOOP_MIN_NEEDED_FROM   4

Definition at line 46 of file iso-2022-jp-3.c.

#define TO_LOOP_MIN_NEEDED_TO   1

Definition at line 48 of file iso-2022-jp-3.c.

#define UPDATE_PARAMS   *statep = set

Definition at line 741 of file iso-2022-jp-3.c.

#define UPDATE_PARAMS   *statep = set | (lasttwo << 6)

Definition at line 741 of file iso-2022-jp-3.c.


Enumeration Type Documentation

anonymous enum
Enumerator:
ASCII_set 
JISX0208_1978_set 
JISX0208_1983_set 
JISX0201_Roman_set 
JISX0201_Kana_set 
JISX0213_1_2000_set 
JISX0213_2_set 
JISX0213_1_2004_set 
CURRENT_SEL_MASK 

Definition at line 58 of file iso-2022-jp-3.c.

{
  ASCII_set = 0,            /* Esc ( B */
  JISX0208_1978_set = 1 << 3,      /* Esc $ @ */
  JISX0208_1983_set = 2 << 3,      /* Esc $ B */
  JISX0201_Roman_set = 3 << 3,     /* Esc ( J */
  JISX0201_Kana_set = 4 << 3,      /* Esc ( I */
  JISX0213_1_2000_set = 5 << 3,    /* Esc $ ( O */
  JISX0213_2_set = 6 << 3,  /* Esc $ ( P */
  JISX0213_1_2004_set = 7 << 3,    /* Esc $ ( Q */
  CURRENT_SEL_MASK = 7 << 3
};

Variable Documentation

struct { ... } comp_table_data[] [static]