X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=include%2Fzebramap.h;h=58feb5666ed2a895f2426ad06e33764114fc6c77;hb=5d1021b2b70231c8f36fd7ec4583c4816a4f25d6;hp=678ff949cf5caa60220eb1775992241b3083e830;hpb=6f7dfe3c3f09f7104c1ae7616c9d207edeab308d;p=idzebra-moved-to-github.git diff --git a/include/zebramap.h b/include/zebramap.h index 678ff94..58feb56 100644 --- a/include/zebramap.h +++ b/include/zebramap.h @@ -1,4 +1,4 @@ -/* $Id: zebramap.h,v 1.25 2007-10-30 19:17:15 adam Exp $ +/* $Id: zebramap.h,v 1.29 2007-12-10 17:06:07 adam Exp $ Copyright (C) 1995-2007 Index Data ApS @@ -79,6 +79,9 @@ YAZ_EXPORT int zebra_maps_is_positioned(zebra_map_t zm); YAZ_EXPORT +int zebra_maps_is_icu(zebra_map_t zm); + +YAZ_EXPORT int zebra_maps_is_first_in_field(zebra_map_t zm); YAZ_EXPORT @@ -86,10 +89,19 @@ WRBUF zebra_replace(zebra_map_t zm, const char *ex_list, const char *input_str, int input_len); YAZ_EXPORT -zebra_map_t zebra_map_get(zebra_maps_t zms, unsigned reg_id); +zebra_map_t zebra_map_get(zebra_maps_t zms, const char *id); + +YAZ_EXPORT +zebra_map_t zebra_map_get_or_add(zebra_maps_t zms, const char *id); + +YAZ_EXPORT +int zebra_map_tokenize_start(zebra_map_t zm, + const char *buf, size_t len); YAZ_EXPORT -zebra_map_t zebra_map_get_or_add(zebra_maps_t zms, unsigned reg_id); +int zebra_map_tokenize_next(zebra_map_t zm, + const char **result_buf, size_t *result_len, + const char **display_buf, size_t *display_len); YAZ_END_CDECL