YAZ
5.34.0
|
ISO 5426 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 | decoder_data |
Functions | |
static unsigned long | yaz_read_iso5426_comb (yaz_iconv_t cd, struct decoder_data *data, unsigned char *inp, size_t inbytesleft, size_t *no_read, int *comb) |
static unsigned long | read_iso5426 (yaz_iconv_t cd, yaz_iconv_decoder_t d, unsigned char *inp, size_t inbytesleft, size_t *no_read) |
static size_t | init_iso5426 (yaz_iconv_t cd, yaz_iconv_decoder_t d, unsigned char *inp, size_t inbytesleft, size_t *no_read) |
void | destroy_iso5426 (yaz_iconv_decoder_t d) |
yaz_iconv_decoder_t | yaz_iso5426_decoder (const char *fromcode, yaz_iconv_decoder_t d) |
ISO 5426 decoding.
MARC-8 reference: http://www.loc.gov/marc/specifications/speccharmarc8.html
ISO 5426 reference (in German) Zeichenkonkordanz MAB2-Zeichensatz - ISO/IEC 10646 / Unicode http://www.d-nb.de/standardisierung/pdf/mab_unic.pdf
Definition in file iconv_decode_iso5426.c.
void destroy_iso5426 | ( | yaz_iconv_decoder_t | d | ) |
Definition at line 211 of file iconv_decode_iso5426.c.
References yaz_iconv_decoder_s::data, and xfree.
Referenced by yaz_iso5426_decoder().
|
static |
Definition at line 200 of file iconv_decode_iso5426.c.
References decoder_data::comb_offset, decoder_data::comb_size, yaz_iconv_decoder_s::data, decoder_data::g0_mode, and decoder_data::g1_mode.
Referenced by yaz_iso5426_decoder().
|
static |
Definition at line 58 of file iconv_decode_iso5426.c.
References decoder_data::comb_no_read, decoder_data::comb_offset, decoder_data::comb_size, decoder_data::comb_x, yaz_iconv_decoder_s::data, decoder_data::no_read, YAZ_ICONV_EINVAL, yaz_iconv_set_errno(), and yaz_read_iso5426_comb().
Referenced by yaz_iso5426_decoder().
yaz_iconv_decoder_t yaz_iso5426_decoder | ( | const char * | fromcode, |
yaz_iconv_decoder_t | d | ||
) |
Definition at line 217 of file iconv_decode_iso5426.c.
References yaz_iconv_decoder_s::data, yaz_iconv_decoder_s::destroy_handle, destroy_iso5426(), yaz_iconv_decoder_s::init_handle, init_iso5426(), yaz_iconv_decoder_s::read_handle, read_iso5426(), xmalloc, and yaz_matchstr().
Referenced by prepare_decoders().
|
static |
Definition at line 112 of file iconv_decode_iso5426.c.
References decoder_data::g0_mode, decoder_data::g1_mode, decoder_data::no_read, YAZ_ICONV_EILSEQ, YAZ_ICONV_EINVAL, yaz_iconv_set_errno(), yaz_iso5426_42_conv, and yaz_iso5426_45_conv.
Referenced by read_iso5426().
yaz_conv_func_t yaz_iso5426_31_conv |
Definition at line 49 of file iconv_decode_iso5426.c.
yaz_conv_func_t yaz_iso5426_32_conv |
Definition at line 43 of file iconv_decode_iso5426.c.
yaz_conv_func_t yaz_iso5426_33_conv |
Definition at line 46 of file iconv_decode_iso5426.c.
yaz_conv_func_t yaz_iso5426_34_conv |
Definition at line 47 of file iconv_decode_iso5426.c.
yaz_conv_func_t yaz_iso5426_42_conv |
Definition at line 38 of file iconv_decode_iso5426.c.
Referenced by yaz_read_iso5426_comb().
yaz_conv_func_t yaz_iso5426_45_conv |
Definition at line 39 of file iconv_decode_iso5426.c.
Referenced by yaz_read_iso5426_comb().
yaz_conv_func_t yaz_iso5426_4E_conv |
Definition at line 44 of file iconv_decode_iso5426.c.
yaz_conv_func_t yaz_iso5426_51_conv |
Definition at line 45 of file iconv_decode_iso5426.c.
yaz_conv_func_t yaz_iso5426_53_conv |
Definition at line 48 of file iconv_decode_iso5426.c.
yaz_conv_func_t yaz_iso5426_62_conv |
Definition at line 41 of file iconv_decode_iso5426.c.
yaz_conv_func_t yaz_iso5426_67_conv |
Definition at line 40 of file iconv_decode_iso5426.c.
yaz_conv_func_t yaz_iso5426_70_conv |
Definition at line 42 of file iconv_decode_iso5426.c.