YAZ  5.23.1
Functions
ucs4.c File Reference

UCS4 decoding and encoding. 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_UCS4 (yaz_iconv_t cd, yaz_iconv_decoder_t d, unsigned char *inp, size_t inbytesleft, size_t *no_read)
 
static unsigned long read_UCS4LE (yaz_iconv_t cd, yaz_iconv_decoder_t d, unsigned char *inp, size_t inbytesleft, size_t *no_read)
 
static size_t write_UCS4 (yaz_iconv_t cd, yaz_iconv_encoder_t en, unsigned long x, char **outbuf, size_t *outbytesleft)
 
static size_t write_UCS4LE (yaz_iconv_t cd, yaz_iconv_encoder_t en, unsigned long x, char **outbuf, size_t *outbytesleft)
 
yaz_iconv_encoder_t yaz_ucs4_encoder (const char *tocode, yaz_iconv_encoder_t e)
 
yaz_iconv_decoder_t yaz_ucs4_decoder (const char *tocode, yaz_iconv_decoder_t d)
 

Detailed Description

UCS4 decoding and encoding.

Definition in file ucs4.c.

Function Documentation

static unsigned long read_UCS4 ( 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 ucs4.c.

References YAZ_ICONV_EINVAL, and yaz_iconv_set_errno().

Referenced by yaz_ucs4_decoder().

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

Definition at line 39 of file ucs4.c.

References YAZ_ICONV_EINVAL, and yaz_iconv_set_errno().

Referenced by yaz_ucs4_decoder().

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

Definition at line 58 of file ucs4.c.

References YAZ_ICONV_E2BIG, and yaz_iconv_set_errno().

Referenced by yaz_ucs4_encoder().

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

Definition at line 80 of file ucs4.c.

References YAZ_ICONV_E2BIG, and yaz_iconv_set_errno().

Referenced by yaz_ucs4_encoder().

yaz_iconv_decoder_t yaz_ucs4_decoder ( const char *  tocode,
yaz_iconv_decoder_t  d 
)

Definition at line 116 of file ucs4.c.

References yaz_iconv_decoder_s::read_handle, read_UCS4(), read_UCS4LE(), and yaz_matchstr().

Referenced by prepare_decoders().

yaz_iconv_encoder_t yaz_ucs4_encoder ( const char *  tocode,
yaz_iconv_encoder_t  e 
)

Definition at line 103 of file ucs4.c.

References yaz_iconv_encoder_s::write_handle, write_UCS4(), write_UCS4LE(), and yaz_matchstr().

Referenced by prepare_encoders().