Back to index

glibc  2.9
Classes | Defines | Enumerations | Functions | Variables
iso646.c File Reference
#include <dlfcn.h>
#include <gconv.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <iconv/loop.c>
#include <iconv/skeleton.c>

Go to the source code of this file.

Classes

struct  iso646_data

Defines

#define FROM_LOOP   from_ascii
#define TO_LOOP   to_ascii
#define DEFINE_INIT   0
#define DEFINE_FINI   0
#define MIN_NEEDED_FROM   1
#define MIN_NEEDED_TO   4
#define FROM_DIRECTION   (dir == from_iso646)
#define PREPARE_LOOP
#define EXTRA_LOOP_ARGS   , var
#define MIN_NEEDED_INPUT   MIN_NEEDED_FROM
#define MIN_NEEDED_OUTPUT   MIN_NEEDED_TO
#define LOOPFCT   FROM_LOOP
#define BODY
#define LOOP_NEED_FLAGS
#define EXTRA_LOOP_DECLS   , enum variant var
#define MIN_NEEDED_INPUT   MIN_NEEDED_TO
#define MIN_NEEDED_OUTPUT   MIN_NEEDED_FROM
#define LOOPFCT   TO_LOOP
#define BODY
#define LOOP_NEED_FLAGS
#define EXTRA_LOOP_DECLS   , enum variant var

Enumerations

enum  direction {
  illegal_dir, to_iso2022jp, from_iso2022jp, illegal_dir,
  to_iso646, from_iso646, illegal_dir, to_unicode,
  from_unicode, illegal_dir, to_utf16, from_utf16,
  illegal_dir, to_utf32, from_utf32
}
enum  variant {
  illegal_var, iso2022jp, iso2022jp2, illegal_var,
  GB, CA, CA2, DE,
  DK, ES, ES2, CN,
  IT, JP, JP_OCR_B, YU,
  KR, HU, CU, FR,
  FR1, NO, NO2, PT,
  PT2, SE, SE2, illegal_var,
  UTF_16, UTF_16LE, UTF_16BE, illegal_var,
  UTF_32, UTF_32LE, UTF_32BE
}

Functions

int gconv_init (struct __gconv_step *step)
void gconv_end (struct __gconv_step *data)

Variables

static const char * names []

Class Documentation

struct iso646_data

Definition at line 118 of file iso646.c.


Define Documentation

#define BODY

Definition at line 427 of file iso646.c.

#define BODY

Definition at line 427 of file iso646.c.

#define DEFINE_FINI   0

Definition at line 44 of file iso646.c.

#define DEFINE_INIT   0

Definition at line 43 of file iso646.c.

#define EXTRA_LOOP_ARGS   , var

Definition at line 51 of file iso646.c.

#define EXTRA_LOOP_DECLS   , enum variant var

Definition at line 890 of file iso646.c.

#define EXTRA_LOOP_DECLS   , enum variant var

Definition at line 890 of file iso646.c.

#define FROM_DIRECTION   (dir == from_iso646)

Definition at line 47 of file iso646.c.

#define FROM_LOOP   from_ascii

Definition at line 41 of file iso646.c.

#define LOOP_NEED_FLAGS

Definition at line 889 of file iso646.c.

#define LOOP_NEED_FLAGS

Definition at line 889 of file iso646.c.

#define LOOPFCT   FROM_LOOP

Definition at line 426 of file iso646.c.

#define LOOPFCT   TO_LOOP

Definition at line 426 of file iso646.c.

#define MIN_NEEDED_FROM   1

Definition at line 45 of file iso646.c.

Definition at line 424 of file iso646.c.

Definition at line 424 of file iso646.c.

Definition at line 425 of file iso646.c.

Definition at line 425 of file iso646.c.

#define MIN_NEEDED_TO   4

Definition at line 46 of file iso646.c.

#define PREPARE_LOOP
Value:
enum direction dir = ((struct iso646_data *) step->__data)->dir;            \
  enum variant var = ((struct iso646_data *) step->__data)->var;

Definition at line 48 of file iso646.c.

#define TO_LOOP   to_ascii

Definition at line 42 of file iso646.c.


Enumeration Type Documentation

enum direction
Enumerator:
illegal_dir 
to_iso2022jp 
from_iso2022jp 
illegal_dir 
to_iso646 
from_iso646 
illegal_dir 
to_unicode 
from_unicode 
illegal_dir 
to_utf16 
from_utf16 
illegal_dir 
to_utf32 
from_utf32 

Definition at line 55 of file iso646.c.

enum variant
Enumerator:
illegal_var 
iso2022jp 
iso2022jp2 
illegal_var 
GB 
CA 
CA2 
DE 
DK 
ES 
ES2 
CN 
IT 
JP 
JP_OCR_B 
YU 
KR 
HU 
CU 
FR 
FR1 
NO 
NO2 
PT 
PT2 
SE 
SE2 
illegal_var 
UTF_16 
UTF_16LE 
UTF_16BE 
illegal_var 
UTF_32 
UTF_32LE 
UTF_32BE 

Definition at line 62 of file iso646.c.

{
  illegal_var,
  GB,         /* BS_4730 */
  CA,         /* CSA_Z243.4-1985-1 */
  CA2,        /* CSA_Z243.4-1985-2 */
  DE,         /* DIN_66003 */
  DK,         /* DS_2089 */
  ES,         /* ES */
  ES2,        /* ES2 */
  CN,         /* GB_1988-80 */
  IT,         /* IT */
  JP,         /* JIS_C6220-1969-RO */
  JP_OCR_B,   /* JIS_C6229-1984-B */
  YU,         /* JUS_I.B1.002 */
  KR,         /* KSC5636 */
  HU,         /* MSZ_7795.3 */
  CU,         /* NC_NC00-10 */
  FR,         /* NF_Z_62-010 */
  FR1,        /* NF_Z_62-010_(1973) */
  NO,         /* NS_4551-1 */
  NO2,        /* NS_4551-2 */
  PT,         /* PT */
  PT2,        /* PT2 */
  SE,         /* SEN_850200_B */
  SE2         /* SEN_850200_C */
};

Function Documentation

void gconv_end ( struct __gconv_step data)
int gconv_init ( struct __gconv_step step)

Variable Documentation

const char* names[] [static]
Initial value:
{
  [GB] = "BS_4730//",
  [CA] = "CSA_Z243.4-1985-1//",
  [CA2] = "CSA_Z243.4-1985-2//",
  [DE] = "DIN_66003//",
  [DK] = "DS_2089//",
  [ES] = "ES//",
  [ES2] = "ES2//",
  [CN] = "GB_1988-80//",
  [IT] = "IT//",
  [JP] = "JIS_C6220-1969-RO//",
  [JP_OCR_B] = "JIS_C6229-1984-B//",
  [YU] = "JUS_I.B1.002//",
  [KR] = "KSC5636//",
  [HU] = "MSZ_7795.3//",
  [CU] = "NC_NC00-10//",
  [FR] = "NF_Z_62-010//",
  [FR1] = "NF_Z_62-010_1973//",    
  [NO] = "NS_4551-1//",
  [NO2] = "NS_4551-2//",
  [PT] = "PT//",
  [PT2] = "PT2//",
  [SE] = "SEN_850200_B//",
  [SE2] = "SEN_850200_C//"
}

Definition at line 90 of file iso646.c.