]>
git.saurik.com Git - apple/icu.git/blob - icuSources/test/cintltst/citertst.h
1 // © 2016 and later: Unicode, Inc. and others.
2 // License & terms of use: http://www.unicode.org/copyright.html
3 /********************************************************************
5 * Copyright (c) 1997-2014, International Business Machines Corporation and
6 * others. All Rights Reserved.
7 ********************************************************************/
8 /********************************************************************************
12 * Modification History:
14 * Madhu Katragadda Converted to C
15 *********************************************************************************/
18 * Collation Iterator tests.
19 * (Let me reiterate my position...)
25 #include "unicode/utypes.h"
27 #if !UCONFIG_NO_COLLATION
29 #include "unicode/ucol.h"
30 #include "unicode/ucoleitr.h"
33 #define MAX_TOKEN_LEN 16
36 * Test for CollationElementIterator previous and next for the whole set of
39 static void TestUnicodeChar(void);
41 * Test for CollationElementIterator previous and next for the whole set of
42 * unicode characters with normalization on.
44 static void TestNormalizedUnicodeChar(void);
46 * Test incremental normalization
48 static void TestNormalization(void);
50 * Test for CollationElementIterator.previous()
52 * @bug 4108758 - Make sure it works with contracting characters
55 static void TestPrevious(void);
58 * Test for getOffset() and setOffset()
60 static void TestOffset(void);
64 static void TestSetText(void);
66 * Test for getMaxExpansion()
68 static void TestMaxExpansion(void);
70 * Test Bug 672, where different locales give a different offset after
71 * a previous for the same string at the same position
73 static void TestBug672(void);
76 * Repeat TestBug672 with normalizatin enabled - this test revealed a bug
77 * in incremental normalization.
79 static void TestBug672Normalize(void);
81 * Test iterators with an relatively small buffer
83 static void TestSmallBuffer(void);
85 * Tests the discontiguos contractions
87 static void TestDiscontiguos(void);
89 * TestSearchCollatorElements tests iterator behavior (forwards and backwards) with
90 * normalization on AND jamo tailoring, among other things.
92 static void TestSearchCollatorElements(void);
94 /*------------------------------------------------------------------------
99 static void assertEqual(UCollationElements
*i1
, UCollationElements
*i2
);
102 #endif /* #if !UCONFIG_NO_COLLATION */