Home | History | Annotate | Download | only in intltest

Lines Matching defs:coll

18 #include "unicode/coll.h"
437 UCollator *coll = ucol_open(testCases[t].locale, &status);
446 ucd = ucd_open(coll, &status);
476 ucol_close(coll);
685 OrderList(UCollator *coll, const UnicodeString &string, int32_t stringOffset = 0);
710 OrderList::OrderList(UCollator *coll, const UnicodeString &string, int32_t stringOffset)
714 UCollationElements *elems = ucol_openElements(coll, string.getBuffer(), string.length(), &status);
718 switch (ucol_getStrength(coll))
1089 PCEList(UCollator *coll, const UnicodeString &string);
1112 PCEList::PCEList(UCollator *coll, const UnicodeString &string)
1115 UCollationElements *elems = ucol_openElements(coll, string.getBuffer(), string.length(), &status);
1228 UCollator *coll = NULL;
1241 coll = ucol_openFromShortString("LEN_S1", FALSE, NULL, &status);
1247 data = CollData::open(coll, status);
1370 ucol_close(coll);
1376 UCollator *coll = NULL;
1389 coll = ucol_openFromShortString("LEN_S1", FALSE, NULL, &status);
1395 data = ucd_open(coll, &status);
1446 ucol_close(coll);
1452 UCollator *coll = NULL;
1459 coll = ucol_open(NULL, &status);
1465 data = CollData::open(coll, status);
1488 ucol_close(coll);
1755 UCollator *coll;
1760 : Monkey(), set(theSet), coll(theCollator), collData(theCollData)
1803 CEList ceList(coll, testCase, status);
1849 const CEList altCEs(coll, alt, status);
1858 static void generateTestCase(UCollator *coll, Monkey *monkeys[], int32_t monkeyCount, UnicodeString &testCase, UnicodeString &alternate)
1875 const CEList ceTest(coll, testCase, status);
1876 const CEList ceAlt(coll, alternate, status);
1959 static UBool simpleSearch(UCollator *coll, const UnicodeString &target, int32_t offset, const UnicodeString &pattern, int32_t &matchStart, int32_t &matchEnd)
1962 OrderList targetOrders(coll, target, offset);
1963 OrderList patternOrders(coll, pattern);
1966 UBreakIterator *charBreakIterator = ubrk_open(UBRK_CHARACTER, ucol_getLocaleByType(coll, ULOC_VALID_LOCALE, &status),
2086 int32_t SSearchTest::monkeyTestCase(UCollator *coll, const UnicodeString &testCase, const UnicodeString &pattern, const UnicodeString &altPattern,
2096 coll,
2101 simpleSearch(coll, testCase, 0, pattern, expectedStart, expectedEnd);
2116 simpleSearch(coll, testCase, 0, altPattern, expectedStart, expectedEnd);
2155 int32_t SSearchTest::bmMonkeyTestCase(UCollator *coll, const UnicodeString &testCase, const UnicodeString &pattern, const UnicodeString &altPattern,
2167 simpleSearch(coll, testCase, 0, pattern, expectedStart, expectedEnd);
2184 simpleSearch(coll, testCase, 0, altPattern, expectedStart, expectedEnd);
2209 //UCollator *coll = ucol_open(NULL, &status);
2210 UCollator *coll = ucol_openFromShortString("S1", FALSE, NULL, &status);
2217 CollData *monkeyData = CollData::open(coll, status);
2222 ucol_getContractionsAndExpansions(coll, contractions, expansions, FALSE, &status);
2228 StringSetMonkey contractionMonkey(contractions, coll, monkeyData);
2229 StringSetMonkey expansionMonkey(expansions, coll, monkeyData);
2296 ucol_setStrength(coll, strengths[s]);
2304 generateTestCase(coll, monkeys, monkeyCount, pattern, altPattern);
2305 generateTestCase(coll, monkeys, monkeyCount, prefix, altPrefix);
2306 generateTestCase(coll, monkeys, monkeyCount, suffix, altSuffix);
2309 notFoundCount += monkeyTestCase(coll, pattern, pattern, altPattern, "pattern", strengthNames[s], seed);
2316 notFoundCount += monkeyTestCase(coll, testCase, pattern, altPattern, "prefix + pattern", strengthNames[s], seed);
2321 notFoundCount += monkeyTestCase(coll, testCase, pattern, altPattern, "prefix + pattern + suffix", strengthNames[s], seed);
2328 notFoundCount += monkeyTestCase(coll, testCase, pattern, altPattern, "pattern + suffix", strengthNames[s], seed);
2340 ucol_close(coll);
2349 UCollator *coll = ucol_openFromShortString("LEN_S1", FALSE, NULL, &status);
2356 CollData *monkeyData = CollData::open(coll, status);
2361 ucol_getContractionsAndExpansions(coll, contractions, expansions, FALSE, &status);
2367 StringSetMonkey contractionMonkey(contractions, coll, monkeyData);
2368 StringSetMonkey expansionMonkey(expansions, coll, monkeyData);
2435 ucol_setStrength(coll, strengths[s]);
2437 CollData *data = CollData::open(coll, status);
2447 generateTestCase(coll, monkeys, monkeyCount, pattern, altPattern);
2448 generateTestCase(coll, monkeys, monkeyCount, prefix, altPrefix);
2449 generateTestCase(coll, monkeys, monkeyCount, suffix, altSuffix);
2467 notFoundCount += bmMonkeyTestCase(coll, pattern, pattern, altPattern, &pat, &alt, "pattern", strengthNames[s], seed);
2474 notFoundCount += bmMonkeyTestCase(coll, testCase, pattern, altPattern, &pat, &alt, "prefix + pattern", strengthNames[s], seed);
2479 notFoundCount += bmMonkeyTestCase(coll, testCase, pattern, altPattern, &pat, &alt, "prefix + pattern + suffix", strengthNames[s], seed);
2486 notFoundCount += bmMonkeyTestCase(coll, testCase, pattern, altPattern, &pat, &alt, "pattern + suffix", strengthNames[s], seed);
2501 ucol_close(coll);