YAZ  5.34.0
Functions
iso5428.c File Reference

ISO-5428:1984 encoding and decoding. More...

#include <assert.h>
#include <errno.h>
#include <string.h>
#include "iconv-p.h"

Go to the source code of this file.

Functions

static unsigned long read_iso_5428_1984 (yaz_iconv_t cd, yaz_iconv_decoder_t d, unsigned char *inp, size_t inbytesleft, size_t *no_read)
 
static size_t write_iso_5428_1984 (yaz_iconv_t cd, yaz_iconv_encoder_t en, unsigned long x, char **outbuf, size_t *outbytesleft)
 
yaz_iconv_encoder_t yaz_iso_5428_encoder (const char *name, yaz_iconv_encoder_t e)
 
yaz_iconv_decoder_t yaz_iso_5428_decoder (const char *name, yaz_iconv_decoder_t d)
 

Detailed Description

ISO-5428:1984 encoding and decoding.

Definition in file iso5428.c.

Function Documentation

◆ read_iso_5428_1984()

static unsigned long read_iso_5428_1984 ( yaz_iconv_t  cd,
yaz_iconv_decoder_t  d,
unsigned char *  inp,
size_t  inbytesleft,
size_t *  no_read 
)
static

Definition at line 20 of file iso5428.c.

References YAZ_ICONV_EINVAL, and yaz_iconv_set_errno().

Referenced by yaz_iso_5428_decoder().

◆ write_iso_5428_1984()

static size_t write_iso_5428_1984 ( yaz_iconv_t  cd,
yaz_iconv_encoder_t  en,
unsigned long  x,
char **  outbuf,
size_t *  outbytesleft 
)
static

Definition at line 271 of file iso5428.c.

References YAZ_ICONV_E2BIG, YAZ_ICONV_EILSEQ, and yaz_iconv_set_errno().

Referenced by yaz_iso_5428_encoder().

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