Back to index

glibc  2.9
Classes | Defines | Enumerations | Functions
utf-16.c File Reference
#include <byteswap.h>
#include <dlfcn.h>
#include <gconv.h>
#include <stddef.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  utf16_data

Defines

#define BOM   0xfeff
#define BOM_OE   0xfffe
#define FROM_LOOP   from_utf16_loop
#define TO_LOOP   to_utf16_loop
#define DEFINE_INIT   0
#define DEFINE_FINI   0
#define MIN_NEEDED_FROM   2
#define MAX_NEEDED_FROM   4
#define MIN_NEEDED_TO   4
#define FROM_DIRECTION   (dir == from_utf16)
#define PREPARE_LOOP
#define EXTRA_LOOP_ARGS   , swap
#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
#define EXTRA_LOOP_DECLS   , int swap
#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 EXTRA_LOOP_DECLS   , int swap

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)

Class Documentation

struct utf16_data

Definition at line 95 of file utf-16.c.


Define Documentation

#define BODY

Definition at line 274 of file utf-16.c.

#define BODY

Definition at line 274 of file utf-16.c.

#define BOM   0xfeff

Definition at line 30 of file utf-16.c.

#define BOM_OE   0xfffe

Definition at line 32 of file utf-16.c.

#define DEFINE_FINI   0

Definition at line 39 of file utf-16.c.

#define DEFINE_INIT   0

Definition at line 38 of file utf-16.c.

#define EXTRA_LOOP_ARGS   , swap

Definition at line 76 of file utf-16.c.

#define EXTRA_LOOP_DECLS   , int swap

Definition at line 349 of file utf-16.c.

#define EXTRA_LOOP_DECLS   , int swap

Definition at line 349 of file utf-16.c.

#define FROM_DIRECTION   (dir == from_utf16)

Definition at line 43 of file utf-16.c.

#define FROM_LOOP   from_utf16_loop

Definition at line 36 of file utf-16.c.

#define LOOP_NEED_FLAGS

Definition at line 348 of file utf-16.c.

#define LOOP_NEED_FLAGS

Definition at line 348 of file utf-16.c.

#define LOOPFCT   TO_LOOP

Definition at line 273 of file utf-16.c.

#define LOOPFCT   FROM_LOOP

Definition at line 273 of file utf-16.c.

#define MAX_NEEDED_FROM   4

Definition at line 41 of file utf-16.c.

Definition at line 271 of file utf-16.c.

Definition at line 195 of file utf-16.c.

#define MIN_NEEDED_FROM   2

Definition at line 40 of file utf-16.c.

Definition at line 270 of file utf-16.c.

Definition at line 270 of file utf-16.c.

Definition at line 272 of file utf-16.c.

Definition at line 272 of file utf-16.c.

#define MIN_NEEDED_TO   4

Definition at line 42 of file utf-16.c.

#define PREPARE_LOOP

Definition at line 44 of file utf-16.c.

#define TO_LOOP   to_utf16_loop

Definition at line 37 of file utf-16.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 80 of file utf-16.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 87 of file utf-16.c.


Function Documentation

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