YAZ 5.37.0
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)
int yaz_danmarc_is_combining (unsigned long ch)
unsigned long yaz_danmarc_swap_to_danmarc (unsigned long ch)

Detailed Description

Internal header for iconv.

Definition in file iconv-p.h.

Typedef Documentation

◆ yaz_conv_func_t

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.

◆ yaz_iconv_decoder_t

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

◆ yaz_iconv_encoder_t

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

Function Documentation

◆ yaz_advancegreek_decoder()

yaz_iconv_decoder_t yaz_advancegreek_decoder ( const char * name,
yaz_iconv_decoder_t d )

Definition at line 387 of file advancegreek.c.

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

Referenced by prepare_decoders().

◆ yaz_advancegreek_encoder()

yaz_iconv_encoder_t yaz_advancegreek_encoder ( const char * name,
yaz_iconv_encoder_t e )

◆ yaz_danmarc_decoder()

◆ yaz_danmarc_encoder()

◆ yaz_danmarc_is_combining()

int yaz_danmarc_is_combining ( unsigned long ch)

Definition at line 227 of file iconv_decode_danmarc.c.

Referenced by read_danmarc_comb(), and write_danmarc().

◆ yaz_danmarc_swap_to_danmarc()

unsigned long yaz_danmarc_swap_to_danmarc ( unsigned long ch)

Definition at line 146 of file iconv_decode_danmarc.c.

References swap_seq.

Referenced by flush_danmarc().

◆ yaz_iconv_set_errno()

◆ yaz_iso5426_decoder()

◆ yaz_iso_5428_decoder()

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 name, yaz_iconv_decoder_s::read_handle, read_iso_5428_1984(), and yaz_matchstr().

Referenced by prepare_decoders().

◆ yaz_iso_5428_encoder()

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 name, yaz_iconv_encoder_s::write_handle, write_iso_5428_1984(), and yaz_matchstr().

Referenced by prepare_encoders().

◆ yaz_iso_8859_1_decoder()

yaz_iconv_decoder_t yaz_iso_8859_1_decoder ( const char * fromcode,
yaz_iconv_decoder_t d )

◆ yaz_iso_8859_1_encoder()

◆ yaz_iso_8859_1_lookup_x12()

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, x1, x2, and y.

Referenced by flush_danmarc(), and read_marc8s().

◆ yaz_iso_8859_1_lookup_y()

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, x1, x2, and y.

Referenced by yaz_write_marc8_generic().

◆ yaz_marc8_decoder()

◆ yaz_marc8_encoder()

◆ yaz_ucs4_decoder()

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_ucs4_encoder()

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_utf8_decoder()

yaz_iconv_decoder_t yaz_utf8_decoder ( const char * fromcode,
yaz_iconv_decoder_t d )

◆ yaz_utf8_encoder()

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_wchar_decoder()

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_wchar_encoder()

yaz_iconv_encoder_t yaz_wchar_encoder ( const char * name,
yaz_iconv_encoder_t e )

Definition at line 53 of file iconv_encode_wchar.c.

References yaz_iconv_encoder_s::write_handle, and yaz_matchstr().

Referenced by prepare_encoders().