Home | History | Annotate | Download | only in intltest

Lines Matching defs:coll

16 #include "unicode/coll.h"
334 OrderList(UCollator *coll, const UnicodeString &string, int32_t stringOffset = 0);
359 OrderList::OrderList(UCollator *coll, const UnicodeString &string, int32_t stringOffset)
363 UCollationElements *elems = ucol_openElements(coll, string.getBuffer(), string.length(), &status);
367 switch (ucol_getStrength(coll))
728 UCollator *coll = NULL;
736 coll = ucol_openFromShortString("LEN_S1", FALSE, NULL, &status);
744 coll,
750 coll,
779 ucol_close(coll);
785 UCollator *coll = NULL;
791 coll = ucol_open(NULL, &status);
796 coll,
809 ucol_close(coll);
1053 UCollator *coll;
1058 : Monkey(), set(theSet), coll(theCollator), collData(theCollData)
1101 CEList ceList(coll, testCase, status);
1147 const CEList altCEs(coll, alt, status);
1156 static void generateTestCase(UCollator *coll, Monkey *monkeys[], int32_t monkeyCount, UnicodeString &testCase, UnicodeString &alternate)
1173 const CEList ceTest(coll, testCase, status);
1174 const CEList ceAlt(coll, alternate, status);
1180 static UBool simpleSearch(UCollator *coll, const UnicodeString &target, int32_t offset, const UnicodeString &pattern, int32_t &matchStart, int32_t &matchEnd)
1183 OrderList targetOrders(coll, target, offset);
1184 OrderList patternOrders(coll, pattern);
1187 UBreakIterator *charBreakIterator = ubrk_open(UBRK_CHARACTER, ucol_getLocaleByType(coll, ULOC_VALID_LOCALE, &status),
1307 int32_t SSearchTest::monkeyTestCase(UCollator *coll, const UnicodeString &testCase, const UnicodeString &pattern, const UnicodeString &altPattern,
1317 coll,
1322 simpleSearch(coll, testCase, 0, pattern, expectedStart, expectedEnd);
1337 simpleSearch(coll, testCase, 0, altPattern, expectedStart, expectedEnd);
1361 //UCollator *coll = ucol_open(NULL, &status);
1362 UCollator *coll = ucol_openFromShortString("S1", FALSE, NULL, &status);
1369 CollData *monkeyData = new CollData(coll, status);
1374 ucol_getContractionsAndExpansions(coll, contractions, expansions, FALSE, &status);
1380 StringSetMonkey contractionMonkey(contractions, coll, monkeyData);
1381 StringSetMonkey expansionMonkey(expansions, coll, monkeyData);
1448 ucol_setStrength(coll, strengths[s]);
1456 generateTestCase(coll, monkeys, monkeyCount, pattern, altPattern);
1457 generateTestCase(coll
1458 generateTestCase(coll, monkeys, monkeyCount, suffix, altSuffix);
1461 notFoundCount += monkeyTestCase(coll, pattern, pattern, altPattern, "pattern", strengthNames[s], seed);
1468 notFoundCount += monkeyTestCase(coll, testCase, pattern, altPattern, "prefix + pattern", strengthNames[s], seed);
1473 notFoundCount += monkeyTestCase(coll, testCase, pattern, altPattern, "prefix + pattern + suffix", strengthNames[s], seed);
1480 notFoundCount += monkeyTestCase(coll, testCase, pattern, altPattern, "pattern + suffix", strengthNames[s], seed);
1491 ucol_close(coll);