added special case with an empty ICU chain for 'raw' index processing without call...
authorMarc Cromme <marc@indexdata.dk>
Thu, 25 Oct 2007 10:04:32 +0000 (10:04 +0000)
committerMarc Cromme <marc@indexdata.dk>
Thu, 25 Oct 2007 10:04:32 +0000 (10:04 +0000)
commit674986e09b1e2c5ea9670355aef21c813323d186
treedd08b0a55d21c1ad553039e3bd3bcefef166f6b6
parent80eb42ff87c6bda77018232e174e5aae41fc29e8
added special case with an empty ICU chain for 'raw' index processing without call of transliterators, case maps or tokenizators. It's optimized such that the following happens:
if (!chain->sort), no utf8 to utf16 translation occurs, and the original cstring is returned for the icu_chain-get_norm8() call.
if (chain->sort), utf8 to utf16 translation is made, the original cstring is returned for the icu_chain-get_norm8() call, and the utf16->sortkey conversion is run previous of calling icu_chain-get_sort8().
include/yaz/icu_I18N.h
src/icu_I18N.c
test/tst_icu_I18N.c