diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2012-03-04 13:16:15 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2012-03-04 13:16:15 +0000 |
commit | 4f735f9c7efbb40316858ad2efed993d860c7461 (patch) | |
tree | 43ccf38db72347f7b31eee44ec13854565310706 /Build/source/libs/icu/icu-49.1/test/cintltst/callcoll.h | |
parent | a88413671252aebde6da430845232b126d5a71dd (diff) |
icu 49.1 (49_rc)
git-svn-id: svn://tug.org/texlive/trunk@25559 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/icu/icu-49.1/test/cintltst/callcoll.h')
-rw-r--r-- | Build/source/libs/icu/icu-49.1/test/cintltst/callcoll.h | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/Build/source/libs/icu/icu-49.1/test/cintltst/callcoll.h b/Build/source/libs/icu/icu-49.1/test/cintltst/callcoll.h new file mode 100644 index 00000000000..d7c6c056815 --- /dev/null +++ b/Build/source/libs/icu/icu-49.1/test/cintltst/callcoll.h @@ -0,0 +1,61 @@ +/******************************************************************** + * COPYRIGHT: + * Copyright (c) 1997-2008, International Business Machines Corporation and + * others. All Rights Reserved. + ********************************************************************/ +/******************************************************************************** +* +* File CALLCOLL.H +* +* Modification History: +* Name Description +* Madhu Katragadda Ported to C +********************************************************************************* +*/ +/** + * CollationDummyTest is a third level test class. This tests creation of + * a customized collator object. For example, number 1 to be sorted + * equlivalent to word 'one'. + */ +#ifndef _CALLCOLLTST +#define _CALLCOLLTST + +#include "unicode/utypes.h" +#include "unicode/ucoleitr.h" + +#if !UCONFIG_NO_COLLATION + +#include "cintltst.h" + +#define RULE_BUFFER_LEN 8192 + +struct OrderAndOffset +{ + int32_t order; + int32_t offset; +}; + +typedef struct OrderAndOffset OrderAndOffset; + + /* tests comparison of custom collation with different strengths */ +void doTest(UCollator*, const UChar* source, const UChar* target, UCollationResult result); +/* verify that iterating forward and backwards over the string yields same CEs */ +void backAndForth(UCollationElements *iter); +/* gets an array of CEs for a string in UCollationElements iterator. */ +OrderAndOffset* getOrders(UCollationElements *iter, int32_t *orderLength); + +void genericOrderingTestWithResult(UCollator *coll, const char * const s[], uint32_t size, UCollationResult result); +void genericOrderingTest(UCollator *coll, const char * const s[], uint32_t size); +void genericLocaleStarter(const char *locale, const char * const s[], uint32_t size); +void genericLocaleStarterWithResult(const char *locale, const char * const s[], uint32_t size, UCollationResult result); +void genericLocaleStarterWithOptions(const char *locale, const char * const s[], uint32_t size, const UColAttribute *attrs, const UColAttributeValue *values, uint32_t attsize); +void genericLocaleStarterWithOptionsAndResult(const char *locale, const char * const s[], uint32_t size, const UColAttribute *attrs, const UColAttributeValue *values, uint32_t attsize, UCollationResult result); +void genericRulesStarterWithResult(const char *rules, const char * const s[], uint32_t size, UCollationResult result); +void genericRulesStarter(const char *rules, const char * const s[], uint32_t size); +void genericRulesStarterWithOptionsAndResult(const char *rules, const char * const s[], uint32_t size, const UColAttribute *attrs, const UColAttributeValue *values, uint32_t attsize, UCollationResult result); +UBool hasCollationElements(const char *locName); + + +#endif /* #if !UCONFIG_NO_COLLATION */ + +#endif |