YAZ  5.23.1
Data Structures | Functions | Variables
iconv_decode_marc8.c File Reference

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)
 

Variables

yaz_conv_func_t yaz_marc8_42_conv
 
yaz_conv_func_t yaz_marc8_45_conv
 
yaz_conv_func_t yaz_marc8_67_conv
 
yaz_conv_func_t yaz_marc8_62_conv
 
yaz_conv_func_t yaz_marc8_70_conv
 
yaz_conv_func_t yaz_marc8_32_conv
 
yaz_conv_func_t yaz_marc8_4E_conv
 
yaz_conv_func_t yaz_marc8_51_conv
 
yaz_conv_func_t yaz_marc8_33_conv
 
yaz_conv_func_t yaz_marc8_34_conv
 
yaz_conv_func_t yaz_marc8_53_conv
 
yaz_conv_func_t yaz_marc8_31_conv
 

Detailed Description

MARC-8 decoding.

MARC-8 reference: http://www.loc.gov/marc/specifications/speccharmarc8.html

Definition in file iconv_decode_marc8.c.

Function Documentation

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 size_t init_marc8 ( yaz_iconv_t  cd,
yaz_iconv_decoder_t  d,
unsigned char *  inp,
size_t  inbytesleft,
size_t *  no_read 
)
static
static size_t init_marc8c ( yaz_iconv_t  cd,
yaz_iconv_decoder_t  d,
unsigned char *  inp,
size_t  inbytesleft,
size_t *  no_read 
)
static
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
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
yaz_iconv_decoder_t yaz_marc8_decoder ( const char *  fromcode,
yaz_iconv_decoder_t  d 
)
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

Variable Documentation

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