icu_iter_get_token_number returns int
authorAdam Dickmeiss <adam@indexdata.dk>
Mon, 8 Mar 2010 20:04:48 +0000 (21:04 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Mon, 8 Mar 2010 20:04:48 +0000 (21:04 +0100)
include/yaz/icu.h
src/icu_chain.c

index 4abba69..10af2a3 100644 (file)
@@ -168,7 +168,7 @@ const char *icu_iter_get_display(yaz_icu_iter_t iter);
     \returns token count (1, 2, 3...)
 */
 YAZ_EXPORT
-const char *icu_iter_get_token_number(yaz_icu_iter_t iter);
+int icu_iter_get_token_number(yaz_icu_iter_t iter);
 
 YAZ_END_CDECL
 
index e1addb7..8ae80fc 100644 (file)
@@ -490,7 +490,7 @@ const char *icu_iter_get_display(yaz_icu_iter_t iter)
     return icu_buf_utf8_to_cstr(iter->display);   
 }
 
-const char *icu_iter_get_token_number(yaz_icu_iter_t iter)
+int icu_iter_get_token_number(yaz_icu_iter_t iter)
 { 
     return iter->token_count;
 }