X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Ficu_casemap.c;h=26aa73744ef641fe1f6c59fd5e93e9a22d80f37b;hp=4c50f69da02a19174ed77b9465a992b820c20458;hb=df84e4897abc4565fe11adead30b99d9634b41b1;hpb=54bd147d353f7f340a48a9da5c6a568446223371 diff --git a/src/icu_casemap.c b/src/icu_casemap.c index 4c50f69..26aa737 100644 --- a/src/icu_casemap.c +++ b/src/icu_casemap.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2009 Index Data + * Copyright (C) 1995-2010 Index Data * See the file LICENSE for details. */ @@ -23,6 +23,8 @@ #include #include +#include + struct icu_casemap { char action; @@ -52,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);