2 * Copyright (c) 1995-2002, Index Data.
3 * See the file LICENSE for details.
4 * Sebastian Hammer, Adam Dickmeiss
6 * $Id: yaz-util.h,v 1.6 2002-12-10 10:59:28 adam Exp $
12 #include <yaz/yconfig.h>
13 #include <yaz/xmalloc.h>
15 #include <yaz/tpath.h>
16 #include <yaz/options.h>
17 #include <yaz/wrbuf.h>
19 #include <yaz/readconf.h>
20 #include <yaz/marcdisp.h>
24 typedef struct yaz_iconv_struct *yaz_iconv_t;
25 #define YAZ_ICONV_UNKNOWN 1
26 #define YAZ_ICONV_E2BIG 2
27 #define YAZ_ICONV_EILSEQ 3
28 #define YAZ_ICONV_EINVAL 4
30 YAZ_EXPORT yaz_iconv_t yaz_iconv_open (const char *tocode,
31 const char *fromcode);
32 YAZ_EXPORT size_t yaz_iconv (yaz_iconv_t cd, char **inbuf, size_t *inbytesleft,
33 char **outbuf, size_t *outbytesleft);
34 YAZ_EXPORT int yaz_iconv_error (yaz_iconv_t cd);
36 YAZ_EXPORT int yaz_iconv_close (yaz_iconv_t cd);
38 YAZ_EXPORT int yaz_iconv_isbuiltin(yaz_iconv_t cd);
40 YAZ_EXPORT int yaz_matchstr(const char *s1, const char *s2);