YAZ  5.25.0
Data Structures | Functions | Variables
iconv_encode_iso_8859_1.c File Reference

ISO-8859-1 encoding / 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  encoder_data


int yaz_iso_8859_1_lookup_y (unsigned long v, unsigned long *x1, unsigned long *x2)
int yaz_iso_8859_1_lookup_x12 (unsigned long x1, unsigned long x2, unsigned long *y)
static size_t write_iso_8859_1 (yaz_iconv_t cd, yaz_iconv_encoder_t e, unsigned long x, char **outbuf, size_t *outbytesleft)
static size_t flush_iso_8859_1 (yaz_iconv_t cd, yaz_iconv_encoder_t e, char **outbuf, size_t *outbytesleft)
void init_iso_8859_1 (yaz_iconv_encoder_t e)
void destroy_iso_8859_1 (yaz_iconv_encoder_t e)
yaz_iconv_encoder_t yaz_iso_8859_1_encoder (const char *tocode, yaz_iconv_encoder_t e)
static unsigned long read_ISO8859_1 (yaz_iconv_t cd, yaz_iconv_decoder_t d, unsigned char *inp, size_t inbytesleft, size_t *no_read)
yaz_iconv_decoder_t yaz_iso_8859_1_decoder (const char *fromcode, yaz_iconv_decoder_t d)


struct {
   unsigned long   x1
   unsigned long   x2
   unsigned   y
latin1_comb []

Detailed Description

ISO-8859-1 encoding / decoding.

Definition in file iconv_encode_iso_8859_1.c.

Function Documentation

◆ destroy_iso_8859_1()

void destroy_iso_8859_1 ( yaz_iconv_encoder_t  e)

Definition at line 219 of file iconv_encode_iso_8859_1.c.

References yaz_iconv_encoder_s::data, and xfree.

Referenced by yaz_iso_8859_1_encoder().

◆ flush_iso_8859_1()

static size_t flush_iso_8859_1 ( yaz_iconv_t  cd,
yaz_iconv_encoder_t  e,
char **  outbuf,
size_t *  outbytesleft 

◆ init_iso_8859_1()

void init_iso_8859_1 ( yaz_iconv_encoder_t  e)

◆ read_ISO8859_1()

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

Definition at line 242 of file iconv_encode_iso_8859_1.c.

Referenced by yaz_iso_8859_1_decoder().

◆ write_iso_8859_1()

static size_t write_iso_8859_1 ( yaz_iconv_t  cd,
yaz_iconv_encoder_t  e,
unsigned long  x,
char **  outbuf,
size_t *  outbytesleft 

◆ yaz_iso_8859_1_decoder()

yaz_iconv_decoder_t yaz_iso_8859_1_decoder ( const char *  fromcode,
yaz_iconv_decoder_t  d 

◆ yaz_iso_8859_1_encoder()

yaz_iconv_encoder_t yaz_iso_8859_1_encoder ( const char *  tocode,
yaz_iconv_encoder_t  e 

◆ yaz_iso_8859_1_lookup_x12()

int yaz_iso_8859_1_lookup_x12 ( unsigned long  x1,
unsigned long  x2,
unsigned long *  y 

Definition at line 119 of file iconv_encode_iso_8859_1.c.

References latin1_comb.

Referenced by read_marc8s().

◆ yaz_iso_8859_1_lookup_y()

int yaz_iso_8859_1_lookup_y ( unsigned long  v,
unsigned long *  x1,
unsigned long *  x2 

Definition at line 100 of file iconv_encode_iso_8859_1.c.

References latin1_comb, and y.

Referenced by yaz_write_marc8_generic().

Variable Documentation

◆ latin1_comb

struct { ... } latin1_comb[]

◆ x1

unsigned long x1

Definition at line 30 of file iconv_encode_iso_8859_1.c.

Referenced by write_iso_8859_1(), and yaz_write_marc8_generic().

◆ x2

unsigned long x2

◆ y

unsigned y