YAZ  5.23.1
Data Structures | Typedefs | Functions
iconv-p.h File Reference

Internal header for iconv. More...

#include <yaz/yconfig.h>
#include <yaz/matchstr.h>
#include <yaz/yaz-iconv.h>

Go to the source code of this file.

Data Structures

struct  yaz_iconv_encoder_s
 
struct  yaz_iconv_decoder_s
 

Typedefs

typedef struct yaz_iconv_encoder_syaz_iconv_encoder_t
 
typedef unsigned long yaz_conv_func_t(unsigned char *inp, size_t inbytesleft, size_t *no_read, int *combining, unsigned mask, int boffset)
 
typedef struct yaz_iconv_decoder_syaz_iconv_decoder_t
 

Functions

void yaz_iconv_set_errno (yaz_iconv_t cd, int no)
 
yaz_iconv_encoder_t yaz_marc8_encoder (const char *name, yaz_iconv_encoder_t e)
 
yaz_iconv_encoder_t yaz_utf8_encoder (const char *name, yaz_iconv_encoder_t e)
 
yaz_iconv_encoder_t yaz_ucs4_encoder (const char *name, yaz_iconv_encoder_t e)
 
yaz_iconv_encoder_t yaz_iso_8859_1_encoder (const char *name, yaz_iconv_encoder_t e)
 
yaz_iconv_encoder_t yaz_iso_5428_encoder (const char *name, yaz_iconv_encoder_t e)
 
yaz_iconv_encoder_t yaz_advancegreek_encoder (const char *name, yaz_iconv_encoder_t e)
 
yaz_iconv_encoder_t yaz_danmarc_encoder (const char *name, yaz_iconv_encoder_t e)
 
yaz_iconv_encoder_t yaz_wchar_encoder (const char *name, yaz_iconv_encoder_t e)
 
int yaz_iso_8859_1_lookup_y (unsigned long v, unsigned long *x1, unsigned long *x2)
 
int yaz_iso_8859_1_lookup_x12 (unsigned long x1, unsigned long x2, unsigned long *y)
 
yaz_iconv_decoder_t yaz_marc8_decoder (const char *fromcode, yaz_iconv_decoder_t d)
 
yaz_iconv_decoder_t yaz_iso5426_decoder (const char *fromcode, yaz_iconv_decoder_t d)
 
yaz_iconv_decoder_t yaz_utf8_decoder (const char *fromcode, yaz_iconv_decoder_t d)
 
yaz_iconv_decoder_t yaz_ucs4_decoder (const char *tocode, yaz_iconv_decoder_t d)
 
yaz_iconv_decoder_t yaz_iso_8859_1_decoder (const char *fromcode, yaz_iconv_decoder_t d)
 
yaz_iconv_decoder_t yaz_iso_5428_decoder (const char *name, yaz_iconv_decoder_t d)
 
yaz_iconv_decoder_t yaz_advancegreek_decoder (const char *name, yaz_iconv_decoder_t d)
 
yaz_iconv_decoder_t yaz_wchar_decoder (const char *fromcode, yaz_iconv_decoder_t d)
 
yaz_iconv_decoder_t yaz_danmarc_decoder (const char *fromcode, yaz_iconv_decoder_t d)
 

Detailed Description

Internal header for iconv.

Definition in file iconv-p.h.

Typedef Documentation

typedef unsigned long yaz_conv_func_t(unsigned char *inp, size_t inbytesleft, size_t *no_read, int *combining, unsigned mask, int boffset)

Definition at line 70 of file iconv-p.h.

Definition at line 80 of file iconv-p.h.

Definition at line 42 of file iconv-p.h.

Function Documentation

yaz_iconv_decoder_t yaz_advancegreek_decoder ( const char *  name,
yaz_iconv_decoder_t  d 
)

Definition at line 387 of file advancegreek.c.

References read_advancegreek(), yaz_iconv_decoder_s::read_handle, and yaz_matchstr().

Referenced by prepare_decoders().

yaz_iconv_encoder_t yaz_advancegreek_encoder ( const char *  name,
yaz_iconv_encoder_t  e 
)

Definition at line 376 of file advancegreek.c.

References write_advancegreek(), yaz_iconv_encoder_s::write_handle, and yaz_matchstr().

Referenced by prepare_encoders().

yaz_iconv_decoder_t yaz_danmarc_decoder ( const char *  fromcode,
yaz_iconv_decoder_t  d 
)
yaz_iconv_encoder_t yaz_danmarc_encoder ( const char *  name,
yaz_iconv_encoder_t  e 
)
void yaz_iconv_set_errno ( yaz_iconv_t  cd,
int  no 
)
yaz_iconv_decoder_t yaz_iso5426_decoder ( const char *  fromcode,
yaz_iconv_decoder_t  d 
)
yaz_iconv_decoder_t yaz_iso_5428_decoder ( const char *  name,
yaz_iconv_decoder_t  d 
)

Definition at line 379 of file iso5428.c.

References yaz_iconv_decoder_s::read_handle, read_iso_5428_1984(), and yaz_matchstr().

Referenced by prepare_decoders().

yaz_iconv_encoder_t yaz_iso_5428_encoder ( const char *  name,
yaz_iconv_encoder_t  e 
)

Definition at line 367 of file iso5428.c.

References yaz_iconv_encoder_s::write_handle, write_iso_5428_1984(), and yaz_matchstr().

Referenced by prepare_encoders().

yaz_iconv_decoder_t yaz_iso_8859_1_decoder ( const char *  fromcode,
yaz_iconv_decoder_t  d 
)
yaz_iconv_encoder_t yaz_iso_8859_1_encoder ( const char *  name,
yaz_iconv_encoder_t  e 
)
int yaz_iso_8859_1_lookup_x12 ( unsigned long  x1,
unsigned long  x2,
unsigned long *  y 
)

Definition at line 119 of file iconv_encode_iso_8859_1.c.

References latin1_comb.

Referenced by read_marc8s().

int yaz_iso_8859_1_lookup_y ( unsigned long  v,
unsigned long *  x1,
unsigned long *  x2 
)

Definition at line 100 of file iconv_encode_iso_8859_1.c.

References latin1_comb, and y.

Referenced by yaz_write_marc8_generic().

yaz_iconv_decoder_t yaz_marc8_decoder ( const char *  fromcode,
yaz_iconv_decoder_t  d 
)
yaz_iconv_encoder_t yaz_marc8_encoder ( const char *  name,
yaz_iconv_encoder_t  e 
)
yaz_iconv_decoder_t yaz_ucs4_decoder ( const char *  tocode,
yaz_iconv_decoder_t  d 
)

Definition at line 116 of file ucs4.c.

References yaz_iconv_decoder_s::read_handle, read_UCS4(), read_UCS4LE(), and yaz_matchstr().

Referenced by prepare_decoders().

yaz_iconv_encoder_t yaz_ucs4_encoder ( const char *  name,
yaz_iconv_encoder_t  e 
)

Definition at line 103 of file ucs4.c.

References yaz_iconv_encoder_s::write_handle, write_UCS4(), write_UCS4LE(), and yaz_matchstr().

Referenced by prepare_encoders().

yaz_iconv_decoder_t yaz_utf8_decoder ( const char *  fromcode,
yaz_iconv_decoder_t  d 
)
yaz_iconv_encoder_t yaz_utf8_encoder ( const char *  name,
yaz_iconv_encoder_t  e 
)

Definition at line 219 of file utf8.c.

References yaz_iconv_encoder_s::write_handle, write_UTF8(), and yaz_matchstr().

Referenced by prepare_encoders().

yaz_iconv_decoder_t yaz_wchar_decoder ( const char *  fromcode,
yaz_iconv_decoder_t  d 
)

Definition at line 90 of file iconv_encode_wchar.c.

References yaz_iconv_decoder_s::read_handle, and yaz_matchstr().

Referenced by prepare_decoders().

yaz_iconv_encoder_t yaz_wchar_encoder ( const char *  name,
yaz_iconv_encoder_t  e 
)