constructor and destructor wrappers for ICU transliterator services added
[pazpar2-moved-to-github.git] / src / icu_I18N.h
index df6cd2d..44f2861 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: icu_I18N.h,v 1.8 2007-05-09 14:01:21 marc Exp $
+/* $Id: icu_I18N.h,v 1.10 2007-05-11 09:35:50 marc Exp $
    Copyright (c) 2006-2007, Index Data.
 
    This file is part of Pazpar2.
@@ -37,6 +37,8 @@
 //#include <unicode/uloc.h>
 #include <unicode/ubrk.h>
 //#include <unicode/unistr.h>
+#include <unicode/utrans.h>
+
 
 
 // forward declarations
@@ -138,6 +140,20 @@ int32_t icu_tokenizer_token_count(struct icu_tokenizer * tokenizer);
 
 
 
+struct icu_normalizer
+{
+  char action;
+  struct icu_buf_utf16 * rules16;
+  UParseError parse_error[256];
+  UTransliterator * trans;
+};
+
+struct icu_normalizer * icu_normalizer_create(const char *rules, char action,
+                                              UErrorCode *status);
+
+
+void icu_normalizer_destroy(struct icu_normalizer * normalizer);
+
 
 #endif // HAVE_ICU
 #endif // ICU_I18NL_H