]>
git.saurik.com Git - apple/icu.git/blob - icuSources/test/cintltst/citertst.h
1 /********************************************************************
3 * Copyright (c) 1997-2014, International Business Machines Corporation and
4 * others. All Rights Reserved.
5 ********************************************************************/
6 /********************************************************************************
10 * Modification History:
12 * Madhu Katragadda Converted to C
13 *********************************************************************************/
16 * Collation Iterator tests.
17 * (Let me reiterate my position...)
23 #include "unicode/utypes.h"
25 #if !UCONFIG_NO_COLLATION
27 #include "unicode/ucol.h"
28 #include "unicode/ucoleitr.h"
31 #define MAX_TOKEN_LEN 16
34 * Test for CollationElementIterator previous and next for the whole set of
37 static void TestUnicodeChar(void);
39 * Test for CollationElementIterator previous and next for the whole set of
40 * unicode characters with normalization on.
42 static void TestNormalizedUnicodeChar(void);
44 * Test incremental normalization
46 static void TestNormalization(void);
48 * Test for CollationElementIterator.previous()
50 * @bug 4108758 - Make sure it works with contracting characters
53 static void TestPrevious(void);
56 * Test for getOffset() and setOffset()
58 static void TestOffset(void);
62 static void TestSetText(void);
64 * Test for getMaxExpansion()
66 static void TestMaxExpansion(void);
68 * Test Bug 672, where different locales give a different offset after
69 * a previous for the same string at the same position
71 static void TestBug672(void);
74 * Repeat TestBug672 with normalizatin enabled - this test revealed a bug
75 * in incremental normalization.
77 static void TestBug672Normalize(void);
79 * Test iterators with an relatively small buffer
81 static void TestSmallBuffer(void);
83 * Tests the discontiguos contractions
85 static void TestDiscontiguos(void);
87 * TestSearchCollatorElements tests iterator behavior (forwards and backwards) with
88 * normalization on AND jamo tailoring, among other things.
90 static void TestSearchCollatorElements(void);
92 /*------------------------------------------------------------------------
97 static void assertEqual(UCollationElements
*i1
, UCollationElements
*i2
);
100 #endif /* #if !UCONFIG_NO_COLLATION */