55 size_t inbytesleft,
size_t *no_read,
60 size_t inbytesleft,
size_t *no_read)
82 if (x == 0x0361 || x == 0x0360)
107 inbytesleft = inbytesleft - *
no_read;
115 size_t inbytesleft,
size_t *
no_read,
119 while (inbytesleft > 0 && *inp == 27)
122 size_t inbytesleft0 = inbytesleft;
126 if (inbytesleft == 0)
133 if (inbytesleft == 0)
135 if (*inp ==
'(' || *inp ==
',')
140 else if (*inp ==
')' || *inp ==
'-')
146 if (inbytesleft == 0)
153 if (inbytesleft == 0)
158 (*no_read) += inbytesleft0 - inbytesleft;
160 if (inbytesleft == 0)
162 else if (*inp ==
' ')
170 size_t no_read_sub = 0;
202 size_t inbytesleft,
size_t *
no_read)
Header for errno utilities.
Internal header for iconv.
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_iso5426_45_conv
yaz_iconv_decoder_t yaz_iso5426_decoder(const char *fromcode, yaz_iconv_decoder_t d)
yaz_conv_func_t yaz_iso5426_70_conv
yaz_conv_func_t yaz_iso5426_62_conv
static size_t init_iso5426(yaz_iconv_t cd, yaz_iconv_decoder_t d, unsigned char *inp, size_t inbytesleft, size_t *no_read)
yaz_conv_func_t yaz_iso5426_33_conv
yaz_conv_func_t yaz_iso5426_31_conv
static unsigned long yaz_read_iso5426_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_iso5426_34_conv
yaz_conv_func_t yaz_iso5426_32_conv
yaz_conv_func_t yaz_iso5426_53_conv
yaz_conv_func_t yaz_iso5426_51_conv
yaz_conv_func_t yaz_iso5426_67_conv
yaz_conv_func_t yaz_iso5426_42_conv
yaz_conv_func_t yaz_iso5426_4E_conv
void destroy_iso5426(yaz_iconv_decoder_t d)
static unsigned long read_iso5426(yaz_iconv_t cd, yaz_iconv_decoder_t d, unsigned char *inp, size_t inbytesleft, size_t *no_read)
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