YAZ  5.23.1
advancegreek.c File Reference

Advance Greek 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.


static unsigned long read_advancegreek (yaz_iconv_t cd, yaz_iconv_decoder_t d, unsigned char *inp, size_t inbytesleft, size_t *no_read)
static size_t write_advancegreek (yaz_iconv_t cd, yaz_iconv_encoder_t w, unsigned long x, char **outbuf, size_t *outbytesleft)
yaz_iconv_encoder_t yaz_advancegreek_encoder (const char *name, yaz_iconv_encoder_t e)
yaz_iconv_decoder_t yaz_advancegreek_decoder (const char *name, yaz_iconv_decoder_t d)

Detailed Description

Advance Greek encoding and decoding.

Definition in file advancegreek.c.

Function Documentation

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

Definition at line 20 of file advancegreek.c.

References YAZ_ICONV_EINVAL, and yaz_iconv_set_errno().

Referenced by yaz_advancegreek_decoder().

static size_t write_advancegreek ( yaz_iconv_t  cd,
yaz_iconv_encoder_t  w,
unsigned long  x,
char **  outbuf,
size_t *  outbytesleft 

Definition at line 280 of file advancegreek.c.

References YAZ_ICONV_E2BIG, YAZ_ICONV_EILSEQ, and yaz_iconv_set_errno().

Referenced by yaz_advancegreek_encoder().

yaz_iconv_decoder_t yaz_advancegreek_decoder ( const char *  name,
yaz_iconv_decoder_t  d 

Definition at line 387 of file advancegreek.c.

References read_advancegreek(), yaz_iconv_decoder_s::read_handle, and yaz_matchstr().

Referenced by prepare_decoders().

yaz_iconv_encoder_t yaz_advancegreek_encoder ( const char *  name,
yaz_iconv_encoder_t  e 

Definition at line 376 of file advancegreek.c.

References write_advancegreek(), yaz_iconv_encoder_s::write_handle, and yaz_matchstr().

Referenced by prepare_encoders().