YAZ
5.34.0
|
MARC-8 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_marc8_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_marc8 (yaz_iconv_t cd, yaz_iconv_decoder_t d, unsigned char *inp, size_t inbytesleft, size_t *no_read) |
static unsigned long | read_marc8s (yaz_iconv_t cd, yaz_iconv_decoder_t d, unsigned char *inp, size_t inbytesleft, size_t *no_read) |
static size_t | init_marc8 (yaz_iconv_t cd, yaz_iconv_decoder_t d, unsigned char *inp, size_t inbytesleft, size_t *no_read) |
static size_t | init_marc8c (yaz_iconv_t cd, yaz_iconv_decoder_t d, unsigned char *inp, size_t inbytesleft, size_t *no_read) |
void | destroy_marc8 (yaz_iconv_decoder_t d) |
yaz_iconv_decoder_t | yaz_marc8_decoder (const char *fromcode, yaz_iconv_decoder_t d) |
MARC-8 decoding.
MARC-8 reference: http://www.loc.gov/marc/specifications/speccharmarc8.html
Definition in file iconv_decode_marc8.c.
void destroy_marc8 | ( | yaz_iconv_decoder_t | d | ) |
Definition at line 270 of file iconv_decode_marc8.c.
References yaz_iconv_decoder_s::data, and xfree.
Referenced by yaz_marc8_decoder().
|
static |
Definition at line 247 of file iconv_decode_marc8.c.
References decoder_data::comb_offset, decoder_data::comb_size, decoder_data::control_mode, yaz_iconv_decoder_s::data, decoder_data::g0_mode, and decoder_data::g1_mode.
Referenced by init_marc8c(), and yaz_marc8_decoder().
|
static |
Definition at line 259 of file iconv_decode_marc8.c.
References decoder_data::control_mode, yaz_iconv_decoder_s::data, init_marc8(), and decoder_data::no_read.
Referenced by yaz_marc8_decoder().
|
static |
Definition at line 55 of file iconv_decode_marc8.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_marc8_comb().
Referenced by read_marc8s(), and yaz_marc8_decoder().
|
static |
Definition at line 109 of file iconv_decode_marc8.c.
References decoder_data::comb_no_read, decoder_data::comb_size, decoder_data::comb_x, yaz_iconv_decoder_s::data, decoder_data::no_read, read_marc8(), and yaz_iso_8859_1_lookup_x12().
Referenced by yaz_marc8_decoder().
yaz_iconv_decoder_t yaz_marc8_decoder | ( | const char * | fromcode, |
yaz_iconv_decoder_t | d | ||
) |
Definition at line 276 of file iconv_decode_marc8.c.
References yaz_iconv_decoder_s::data, yaz_iconv_decoder_s::destroy_handle, destroy_marc8(), yaz_iconv_decoder_s::init_handle, init_marc8(), init_marc8c(), yaz_iconv_decoder_s::read_handle, read_marc8(), read_marc8s(), xmalloc, and yaz_matchstr().
Referenced by prepare_decoders().
|
static |
Definition at line 126 of file iconv_decode_marc8.c.
References decoder_data::control_mode, decoder_data::g0_mode, decoder_data::g1_mode, decoder_data::no_read, YAZ_ICONV_EILSEQ, YAZ_ICONV_EINVAL, yaz_iconv_set_errno(), yaz_marc8_31_conv, yaz_marc8_32_conv, yaz_marc8_33_conv, yaz_marc8_34_conv, yaz_marc8_42_conv, yaz_marc8_45_conv, yaz_marc8_4E_conv, yaz_marc8_51_conv, yaz_marc8_53_conv, yaz_marc8_62_conv, yaz_marc8_67_conv, and yaz_marc8_70_conv.
Referenced by read_marc8().
yaz_conv_func_t yaz_marc8_31_conv |
Definition at line 46 of file iconv_decode_marc8.c.
Referenced by yaz_read_marc8_comb().
yaz_conv_func_t yaz_marc8_32_conv |
Definition at line 40 of file iconv_decode_marc8.c.
Referenced by yaz_read_marc8_comb().
yaz_conv_func_t yaz_marc8_33_conv |
Definition at line 43 of file iconv_decode_marc8.c.
Referenced by yaz_read_marc8_comb().
yaz_conv_func_t yaz_marc8_34_conv |
Definition at line 44 of file iconv_decode_marc8.c.
Referenced by yaz_read_marc8_comb().
yaz_conv_func_t yaz_marc8_42_conv |
Definition at line 35 of file iconv_decode_marc8.c.
Referenced by yaz_read_marc8_comb().
yaz_conv_func_t yaz_marc8_45_conv |
Definition at line 36 of file iconv_decode_marc8.c.
Referenced by yaz_read_marc8_comb().
yaz_conv_func_t yaz_marc8_4E_conv |
Definition at line 41 of file iconv_decode_marc8.c.
Referenced by yaz_read_marc8_comb().
yaz_conv_func_t yaz_marc8_51_conv |
Definition at line 42 of file iconv_decode_marc8.c.
Referenced by yaz_read_marc8_comb().
yaz_conv_func_t yaz_marc8_53_conv |
Definition at line 45 of file iconv_decode_marc8.c.
Referenced by yaz_read_marc8_comb().
yaz_conv_func_t yaz_marc8_62_conv |
Definition at line 38 of file iconv_decode_marc8.c.
Referenced by yaz_read_marc8_comb().
yaz_conv_func_t yaz_marc8_67_conv |
Definition at line 37 of file iconv_decode_marc8.c.
Referenced by yaz_read_marc8_comb().
yaz_conv_func_t yaz_marc8_70_conv |
Definition at line 39 of file iconv_decode_marc8.c.
Referenced by yaz_read_marc8_comb().