Back to index

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

Go to the source code of this file.

Defines

#define CHARSET_NAME   "TSCII//"
#define FROM_LOOP   from_tscii
#define TO_LOOP   to_tscii
#define DEFINE_INIT   1
#define DEFINE_FINI   1
#define FROM_LOOP_MIN_NEEDED_FROM   1
#define FROM_LOOP_MAX_NEEDED_FROM   2
#define FROM_LOOP_MIN_NEEDED_TO   4
#define FROM_LOOP_MAX_NEEDED_TO   16
#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   3
#define PREPARE_LOOP
#define EXTRA_LOOP_ARGS   , statep
#define SAVE_RESET_STATE(Save)
#define EMIT_SHIFT_TO_INIT
#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 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

Variables

static const uint16_t tscii_to_ucs4 [128][2]
static const uint32_t tscii_next_state [6]
static const uint8_t ucs4_to_tscii [128]
static const uint8_t consonant_with_u [18]
static const uint8_t consonant_with_uu [18]
static const uint8_t consonant_with_virama [18]

Define Documentation

#define BODY

Definition at line 563 of file tscii.c.

#define BODY

Definition at line 563 of file tscii.c.

#define CHARSET_NAME   "TSCII//"

Definition at line 37 of file tscii.c.

#define DEFINE_FINI   1

Definition at line 41 of file tscii.c.

#define DEFINE_INIT   1

Definition at line 40 of file tscii.c.

Definition at line 87 of file tscii.c.

#define EXTRA_LOOP_ARGS   , statep

Definition at line 53 of file tscii.c.

#define EXTRA_LOOP_DECLS   , int *statep

Definition at line 841 of file tscii.c.

#define EXTRA_LOOP_DECLS   , int *statep

Definition at line 841 of file tscii.c.

#define FROM_LOOP   from_tscii

Definition at line 38 of file tscii.c.

#define FROM_LOOP_MAX_NEEDED_FROM   2

Definition at line 43 of file tscii.c.

#define FROM_LOOP_MAX_NEEDED_TO   16

Definition at line 45 of file tscii.c.

#define FROM_LOOP_MIN_NEEDED_FROM   1

Definition at line 42 of file tscii.c.

#define FROM_LOOP_MIN_NEEDED_TO   4

Definition at line 44 of file tscii.c.

#define LOOP_NEED_FLAGS

Definition at line 840 of file tscii.c.

#define LOOP_NEED_FLAGS

Definition at line 840 of file tscii.c.

#define LOOPFCT   FROM_LOOP

Definition at line 562 of file tscii.c.

#define LOOPFCT   TO_LOOP

Definition at line 562 of file tscii.c.

Definition at line 559 of file tscii.c.

Definition at line 559 of file tscii.c.

Definition at line 561 of file tscii.c.

Definition at line 561 of file tscii.c.

Definition at line 558 of file tscii.c.

Definition at line 558 of file tscii.c.

Definition at line 560 of file tscii.c.

Definition at line 560 of file tscii.c.

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

Definition at line 50 of file tscii.c.

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

Definition at line 58 of file tscii.c.

#define TO_LOOP   to_tscii

Definition at line 39 of file tscii.c.

#define TO_LOOP_MAX_NEEDED_FROM   4

Definition at line 47 of file tscii.c.

#define TO_LOOP_MAX_NEEDED_TO   3

Definition at line 49 of file tscii.c.

#define TO_LOOP_MIN_NEEDED_FROM   4

Definition at line 46 of file tscii.c.

#define TO_LOOP_MIN_NEEDED_TO   1

Definition at line 48 of file tscii.c.


Variable Documentation

Initial value:
  {
    0xcc, 0x99, 0xcd, 0x9a, 0xce, 0xcf, 0xd0, 0xd1, 0xd2,
    0xd3, 0xd4, 0xd5, 0xd6, 0xd7, 0xd8, 0xd9, 0xda, 0xdb
  }

Definition at line 540 of file tscii.c.

Initial value:
  {
    0xdc, 0x9b, 0xdd, 0x9c, 0xde, 0xdf, 0xe0, 0xe1, 0xe2,
    0xe3, 0xe4, 0xe5, 0xe6, 0xe7, 0xe8, 0xe9, 0xea, 0xeb
  }

Definition at line 546 of file tscii.c.

Initial value:
  {
    0xec, 0xed, 0xee, 0xef, 0xf0, 0xf1, 0xf2, 0xf3, 0xf4,
    0xf5, 0xf6, 0xf7, 0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0xfd
  }

Definition at line 552 of file tscii.c.

Initial value:
  {
    
    0,
    
    (0x0BB7 << 8),
    
    (0x0BC0 << 8),
    
    (0x0BCD << 8),
    
    (0x0BB0 << 8) + (2 << 4),
    
    (0x0BB7 << 8) + (3 << 4)
  }

Definition at line 275 of file tscii.c.

const uint16_t tscii_to_ucs4[128][2] [static]

Definition at line 143 of file tscii.c.

const uint8_t ucs4_to_tscii[128] [static]
Initial value:
  {
       0,    0,    0, 0xb7,    0, 0xab, 0xac, 0xfe, 
    0xae, 0xaf, 0xb0,    0,    0,    0, 0xb1, 0xb2, 
    0xb3,    0, 0xb4, 0xb5, 0xb6, 0xb8,    0,    0, 
       0, 0xb9, 0xba,    0, 0x83,    0, 0xbb, 0xbc, 
       0,    0,    0, 0xbd, 0xbe,    0,    0,    0, 
    0xbf, 0xc9, 0xc0,    0,    0,    0, 0xc1, 0xc2, 
    0xc3, 0xc8, 0xc4, 0xc7, 0xc6, 0xc5,    0, 0x84, 
    0x85, 0x86,    0,    0,    0,    0, 0xa1, 0xa2, 
    0xa3, 0xa4, 0xa5,    0,    0,    0, 0xa6, 0xa7, 
    0xa8,    0,    0,    0,    0,    0,    0,    0, 
       0,    0,    0,    0,    0,    0,    0, 0xaa, 
       0,    0,    0,    0,    0,    0,    0,    0, 
       0,    0,    0,    0,    0,    0, 0x80, 0x81, 
    0x8d, 0x8e, 0x8f, 0x90, 0x95, 0x96, 0x97, 0x98, 
    0x9d, 0x9e, 0x9f,    0,    0,    0,    0,    0, 
       0,    0,    0,    0,    0,    0,    0,    0  
  }

Definition at line 520 of file tscii.c.