Header updates
[yaz-moved-to-github.git] / src / icu_casemap.c
index 2ee7ebf..6453229 100644 (file)
@@ -1,5 +1,5 @@
 /* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2009 Index Data
+ * Copyright (C) 1995-2011 Index Data
  * See the file LICENSE for details.
  */
 
@@ -54,6 +54,14 @@ struct icu_casemap * icu_casemap_create(char action, UErrorCode *status)
     return casemap;
 }
 
+struct icu_casemap *icu_casemap_clone(struct icu_casemap *old)
+{
+    struct icu_casemap * casemap
+        = (struct icu_casemap *) xmalloc(sizeof(struct icu_casemap));
+    casemap->action = old->action;
+    return casemap;
+}
+
 void icu_casemap_destroy(struct icu_casemap * casemap)
 {
     xfree(casemap);