-/* $Id: t17.c,v 1.3 2007-11-08 07:54:17 adam Exp $
+/* $Id: t17.c,v 1.4 2007-11-08 08:18:37 adam Exp $
Copyright (C) 1995-2007
Index Data ApS
static void tst(int argc, char **argv)
{
-#if HAVE_ICU
+#if YAZ_HAVE_ICU
ZebraService zs = tl_start_up("zebra17.cfg", argc, argv);
ZebraHandle zh = zebra_open(zs, 0);
-/* $Id: zebramap.c,v 1.67 2007-11-07 11:22:58 adam Exp $
+/* $Id: zebramap.c,v 1.68 2007-11-08 08:18:37 adam Exp $
Copyright (C) 1995-2007
Index Data ApS
#include <attrfind.h>
#include <yaz/yaz-util.h>
-#if HAVE_ICU
+#if YAZ_HAVE_ICU
#include <yaz/icu_I18N.h>
#endif
#include <zebramap.h>
#if YAZ_HAVE_XML2
xmlDocPtr doc;
#endif
-#if HAVE_ICU
+#if YAZ_HAVE_ICU
struct icu_chain *icu_chain;
#endif
WRBUF simple_buf;
{
if (zm->maptab)
chrmaptab_destroy(zm->maptab);
-#if HAVE_ICU
+#if YAZ_HAVE_ICU
if (zm->icu_chain)
icu_chain_destroy(zm->icu_chain);
#endif
zms->map_list = zm;
zms->last_map = zm;
zm->next = 0;
-#if HAVE_ICU
+#if YAZ_HAVE_ICU
zm->icu_chain = 0;
#endif
#if YAZ_HAVE_XML2
else if (!yaz_matchstr(argv[0], "simplechain"))
{
zm->use_chain = 1;
-#if HAVE_ICU
+#if YAZ_HAVE_ICU
zm->icu_chain = 0;
#endif
}
}
else
{
-#if HAVE_ICU
+#if YAZ_HAVE_ICU
UErrorCode status;
xmlNode *xml_node = xmlDocGetRootElement(zm->doc);
zm->icu_chain =
zm->simple_off = 0;
}
-#if HAVE_ICU
+#if YAZ_HAVE_ICU
if (!zm->icu_chain)
return tokenize_simple(zm, result_buf, result_len);
else
int zebra_maps_is_icu(zebra_map_t zm)
{
-#if HAVE_ICU
+#if YAZ_HAVE_ICU
return zm->use_chain;
#else
return 0;