YAZ  5.23.1
Data Structures | Functions
iconv_decode_danmarc.c File Reference

Danmarc2 character set decoding. More...

#include <assert.h>
#include <errno.h>
#include <string.h>
#include <stdio.h>
#include <yaz/log.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 read_danmarc (yaz_iconv_t cd, yaz_iconv_decoder_t d, unsigned char *inp, size_t inbytesleft, size_t *no_read)
 
static size_t init_danmarc (yaz_iconv_t cd, yaz_iconv_decoder_t d, unsigned char *inp, size_t inbytesleft, size_t *no_read)
 
void destroy_danmarc (yaz_iconv_decoder_t d)
 
yaz_iconv_decoder_t yaz_danmarc_decoder (const char *fromcode, yaz_iconv_decoder_t d)
 

Detailed Description

Danmarc2 character set decoding.

Definition in file iconv_decode_danmarc.c.

Function Documentation

void destroy_danmarc ( yaz_iconv_decoder_t  d)

Definition at line 98 of file iconv_decode_danmarc.c.

References yaz_iconv_decoder_s::data, and xfree.

Referenced by yaz_danmarc_decoder().

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

Definition at line 89 of file iconv_decode_danmarc.c.

References yaz_iconv_decoder_s::data, and decoder_data::x_back.

Referenced by yaz_danmarc_decoder().

static unsigned long read_danmarc ( 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_danmarc_decoder ( const char *  fromcode,
yaz_iconv_decoder_t  d 
)