|
YAZ 5.35.1
|
ISO-8859-1 encoding / decoding. More...
#include <assert.h>#include <errno.h>#include <string.h>#include <yaz/xmalloc.h>#include "iconv-p.h"Go to the source code of this file.
Data Structures | |
| struct | encoder_data |
Functions | |
| 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) |
| static size_t | write_iso_8859_1 (yaz_iconv_t cd, yaz_iconv_encoder_t e, unsigned long x, char **outbuf, size_t *outbytesleft) |
| static size_t | flush_iso_8859_1 (yaz_iconv_t cd, yaz_iconv_encoder_t e, char **outbuf, size_t *outbytesleft) |
| void | init_iso_8859_1 (yaz_iconv_encoder_t e) |
| void | destroy_iso_8859_1 (yaz_iconv_encoder_t e) |
| yaz_iconv_encoder_t | yaz_iso_8859_1_encoder (const char *tocode, yaz_iconv_encoder_t e) |
| static unsigned long | read_ISO8859_1 (yaz_iconv_t cd, yaz_iconv_decoder_t d, unsigned char *inp, size_t inbytesleft, size_t *no_read) |
| yaz_iconv_decoder_t | yaz_iso_8859_1_decoder (const char *fromcode, yaz_iconv_decoder_t d) |
Variables | ||
| struct { | ||
| unsigned long x1 | ||
| unsigned long x2 | ||
| unsigned y | ||
| } | latin1_comb [] | |
ISO-8859-1 encoding / decoding.
Definition in file iconv_encode_iso_8859_1.c.
| void destroy_iso_8859_1 | ( | yaz_iconv_encoder_t | e | ) |
Definition at line 219 of file iconv_encode_iso_8859_1.c.
References yaz_iconv_encoder_s::data, and xfree.
Referenced by yaz_iso_8859_1_encoder().
|
static |
Definition at line 192 of file iconv_encode_iso_8859_1.c.
References encoder_data::compose_char, yaz_iconv_encoder_s::data, YAZ_ICONV_E2BIG, and yaz_iconv_set_errno().
Referenced by yaz_iso_8859_1_encoder().
| void init_iso_8859_1 | ( | yaz_iconv_encoder_t | e | ) |
Definition at line 213 of file iconv_encode_iso_8859_1.c.
References encoder_data::compose_char, and yaz_iconv_encoder_s::data.
Referenced by yaz_iso_8859_1_encoder().
|
static |
Definition at line 242 of file iconv_encode_iso_8859_1.c.
Referenced by yaz_iso_8859_1_decoder().
|
static |
Definition at line 133 of file iconv_encode_iso_8859_1.c.
References encoder_data::compose_char, yaz_iconv_encoder_s::data, latin1_comb, x1, YAZ_ICONV_E2BIG, YAZ_ICONV_EILSEQ, and yaz_iconv_set_errno().
Referenced by yaz_iso_8859_1_encoder().
| yaz_iconv_decoder_t yaz_iso_8859_1_decoder | ( | const char * | fromcode, |
| yaz_iconv_decoder_t | d | ||
| ) |
Definition at line 252 of file iconv_encode_iso_8859_1.c.
References yaz_iconv_decoder_s::read_handle, read_ISO8859_1(), and yaz_matchstr().
Referenced by prepare_decoders().
| yaz_iconv_encoder_t yaz_iso_8859_1_encoder | ( | const char * | tocode, |
| yaz_iconv_encoder_t | e | ||
| ) |
Definition at line 224 of file iconv_encode_iso_8859_1.c.
References yaz_iconv_encoder_s::data, yaz_iconv_encoder_s::destroy_handle, destroy_iso_8859_1(), yaz_iconv_encoder_s::flush_handle, flush_iso_8859_1(), yaz_iconv_encoder_s::init_handle, init_iso_8859_1(), yaz_iconv_encoder_s::write_handle, write_iso_8859_1(), xmalloc, and yaz_matchstr().
Referenced by prepare_encoders().
| 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().
| 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().
| struct { ... } latin1_comb[] |
Referenced by write_iso_8859_1(), yaz_iso_8859_1_lookup_x12(), and yaz_iso_8859_1_lookup_y().
| unsigned long x1 |
Definition at line 30 of file iconv_encode_iso_8859_1.c.
Referenced by write_iso_8859_1(), yaz_iso_8859_1_lookup_x12(), yaz_iso_8859_1_lookup_y(), and yaz_write_marc8_generic().
| unsigned long x2 |
Definition at line 30 of file iconv_encode_iso_8859_1.c.
Referenced by yaz_iso_8859_1_lookup_x12(), yaz_iso_8859_1_lookup_y(), yaz_write_marc8_generic(), zget_init_diagnostics(), and zget_init_diagnostics_octet().
| unsigned y |
Definition at line 31 of file iconv_encode_iso_8859_1.c.
Referenced by flush_combos(), flush_danmarc(), yaz_iso_8859_1_lookup_x12(), yaz_iso_8859_1_lookup_y(), and yaz_write_marc8_2().