27 #include <yaz/diagbib1.h>
36 Z_Term *term = zapt->term;
43 char *inbuf = (
char *) term->u.general->buf;
44 size_t inleft = term->u.general->len;
51 if (ret == (
size_t)(-1))
58 iconv_error == YAZ_ICONV_E2BIG ?
59 YAZ_BIB1_TOO_MANY_CHARS_IN_SEARCH_STATEMENT :
60 YAZ_BIB1_QUERY_TERM_INCLUDES_CHARS_THAT_DO_NOT_TRANSLATE_INTO_,
69 sizez = term->u.general->len;
72 memcpy (termz, term->u.general->buf, sizez);
76 case Z_Term_characterString:
77 sizez = strlen(term->u.characterString);
80 memcpy (termz, term->u.characterString, sizez);
void zebra_setError(ZebraHandle zh, int code, const char *addinfo)
yaz_iconv_t iconv_to_utf8
short ZEBRA_RES
Common return type for Zebra API.
ZEBRA_RES zapt_term_to_utf8(ZebraHandle zh, Z_AttributesPlusTerm *zapt, char *termz)