YAZ
5.34.0
|
Danmarc2 character set encoding. More...
#include <assert.h>
#include <stdio.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 |
Macros | |
#define | MAX_COMP 4 |
Functions | |
static size_t | write1 (yaz_iconv_t cd, unsigned long x, char **outbuf, size_t *outbytesleft) |
static size_t | flush_danmarc (yaz_iconv_t cd, yaz_iconv_encoder_t e, char **outbuf, size_t *outbytesleft) |
static size_t | write_danmarc (yaz_iconv_t cd, yaz_iconv_encoder_t e, unsigned long x, char **outbuf, size_t *outbytesleft) |
static void | init_danmarc (yaz_iconv_encoder_t e) |
static void | destroy_danmarc (yaz_iconv_encoder_t e) |
yaz_iconv_encoder_t | yaz_danmarc_encoder (const char *tocode, yaz_iconv_encoder_t e) |
Danmarc2 character set encoding.
Definition in file iconv_encode_danmarc.c.
#define MAX_COMP 4 |
Definition at line 22 of file iconv_encode_danmarc.c.
|
static |
Definition at line 158 of file iconv_encode_danmarc.c.
References yaz_iconv_encoder_s::data, and xfree.
Referenced by yaz_danmarc_encoder().
|
static |
Definition at line 94 of file iconv_encode_danmarc.c.
References encoder_data::base_char, encoder_data::comp, yaz_iconv_encoder_s::data, encoder_data::dia, encoder_data::sz, write1(), y, yaz_danmarc_swap_to_danmarc(), and yaz_iso_8859_1_lookup_x12().
Referenced by write_danmarc(), and yaz_danmarc_encoder().
|
static |
Definition at line 151 of file iconv_encode_danmarc.c.
References encoder_data::base_char, yaz_iconv_encoder_s::data, and encoder_data::sz.
Referenced by yaz_danmarc_encoder().
|
static |
Definition at line 32 of file iconv_encode_danmarc.c.
References YAZ_ICONV_E2BIG, YAZ_ICONV_EILSEQ, and yaz_iconv_set_errno().
Referenced by flush_danmarc().
|
static |
Definition at line 130 of file iconv_encode_danmarc.c.
References encoder_data::base_char, encoder_data::comp, yaz_iconv_encoder_s::data, flush_danmarc(), MAX_COMP, encoder_data::sz, and yaz_danmarc_is_combining().
Referenced by yaz_danmarc_encoder().
yaz_iconv_encoder_t yaz_danmarc_encoder | ( | const char * | tocode, |
yaz_iconv_encoder_t | e | ||
) |
Definition at line 163 of file iconv_encode_danmarc.c.
References yaz_iconv_encoder_s::data, destroy_danmarc(), yaz_iconv_encoder_s::destroy_handle, encoder_data::dia, flush_danmarc(), yaz_iconv_encoder_s::flush_handle, init_danmarc(), yaz_iconv_encoder_s::init_handle, write_danmarc(), yaz_iconv_encoder_s::write_handle, xmalloc, and yaz_matchstr().
Referenced by prepare_encoders().