52 size_t inbytesleft,
size_t *no_read,
57 size_t inbytesleft,
size_t *no_read)
79 if (x == 0x0361 || x == 0x0360)
104 inbytesleft = inbytesleft - *
no_read;
111 size_t inbytesleft,
size_t *
no_read)
129 size_t inbytesleft,
size_t *
no_read,
133 while (inbytesleft > 0 && *inp == 27)
136 size_t inbytesleft0 = inbytesleft;
140 if (inbytesleft == 0)
147 if (inbytesleft == 0)
149 if (*inp ==
'(' || *inp ==
',')
154 else if (*inp ==
')' || *inp ==
'-')
160 if (inbytesleft == 0)
167 if (inbytesleft == 0)
172 (*no_read) += inbytesleft0 - inbytesleft;
174 if (inbytesleft == 0)
176 else if (*inp ==
' ')
189 size_t no_read_sub = 0;
249 size_t inbytesleft,
size_t *
no_read)
261 size_t inbytesleft,
size_t *
no_read)
Header for errno utilities.
Internal header for iconv.
int yaz_iso_8859_1_lookup_x12(unsigned long x1, unsigned long x2, unsigned long *y)
unsigned long yaz_conv_func_t(unsigned char *inp, size_t inbytesleft, size_t *no_read, int *combining, unsigned mask, int boffset)
void yaz_iconv_set_errno(yaz_iconv_t cd, int no)
yaz_conv_func_t yaz_marc8_62_conv
yaz_conv_func_t yaz_marc8_33_conv
yaz_conv_func_t yaz_marc8_51_conv
yaz_conv_func_t yaz_marc8_31_conv
static size_t init_marc8(yaz_iconv_t cd, yaz_iconv_decoder_t d, unsigned char *inp, size_t inbytesleft, size_t *no_read)
static size_t init_marc8c(yaz_iconv_t cd, yaz_iconv_decoder_t d, unsigned char *inp, size_t inbytesleft, size_t *no_read)
yaz_conv_func_t yaz_marc8_34_conv
yaz_conv_func_t yaz_marc8_53_conv
yaz_conv_func_t yaz_marc8_70_conv
static unsigned long read_marc8s(yaz_iconv_t cd, yaz_iconv_decoder_t d, unsigned char *inp, size_t inbytesleft, size_t *no_read)
static unsigned long read_marc8(yaz_iconv_t cd, yaz_iconv_decoder_t d, unsigned char *inp, size_t inbytesleft, size_t *no_read)
void destroy_marc8(yaz_iconv_decoder_t d)
yaz_conv_func_t yaz_marc8_45_conv
yaz_conv_func_t yaz_marc8_42_conv
yaz_conv_func_t yaz_marc8_32_conv
yaz_iconv_decoder_t yaz_marc8_decoder(const char *fromcode, yaz_iconv_decoder_t d)
static unsigned long yaz_read_marc8_comb(yaz_iconv_t cd, struct decoder_data *data, unsigned char *inp, size_t inbytesleft, size_t *no_read, int *comb)
yaz_conv_func_t yaz_marc8_4E_conv
yaz_conv_func_t yaz_marc8_67_conv
int yaz_matchstr(const char *s1, const char *s2)
match strings - independent of case and '-'
unsigned long(* read_handle)(yaz_iconv_t cd, yaz_iconv_decoder_t d, unsigned char *inbuf, size_t inbytesleft, size_t *no_read)
size_t(* init_handle)(yaz_iconv_t cd, yaz_iconv_decoder_t d, unsigned char *inbuf, size_t inbytesleft, size_t *no_read)
void(* destroy_handle)(yaz_iconv_decoder_t d)
Header for memory handling functions.
#define xfree(x)
utility macro which calls xfree_f
#define xmalloc(x)
utility macro which calls malloc_f
#define YAZ_ICONV_EILSEQ
error code: Invalid sequence
#define YAZ_ICONV_EINVAL
error code: An incomplete multibyte sequence is in input buffer