Lines Matching refs:altPattern
2076 int32_t SSearchTest::monkeyTestCase(UCollator *coll, const UnicodeString &testCase, const UnicodeString &pattern, const UnicodeString &altPattern,
2081 //int32_t expectedStart = prefix.length(), expectedEnd = prefix.length() + altPattern.length();
2106 simpleSearch(coll, testCase, 0, altPattern, expectedStart, expectedEnd);
2108 usearch_setPattern(uss.getAlias(), altPattern.getBuffer(), altPattern.length(), &status);
2145 int32_t SSearchTest::bmMonkeyTestCase(UCollator *coll, const UnicodeString &testCase, const UnicodeString &pattern, const UnicodeString &altPattern,
2151 //int32_t expectedStart = prefix.length(), expectedEnd = prefix.length() + altPattern.length();
2174 simpleSearch(coll, testCase, 0, altPattern, expectedStart, expectedEnd);
2180 hexForUnicodeString(altPattern, hexbuf, sizeof(hexbuf));
2222 UnicodeString pattern, altPattern;
2294 generateTestCase(coll, monkeys, monkeyCount, pattern, altPattern);
2299 notFoundCount += monkeyTestCase(coll, pattern, pattern, altPattern, "pattern", strengthNames[s], seed);
2306 notFoundCount += monkeyTestCase(coll, testCase, pattern, altPattern, "prefix + pattern", strengthNames[s], seed);
2311 notFoundCount += monkeyTestCase(coll, testCase, pattern, altPattern, "prefix + pattern + suffix", strengthNames[s], seed);
2318 notFoundCount += monkeyTestCase(coll, testCase, pattern, altPattern, "pattern + suffix", strengthNames[s], seed);
2361 UnicodeString pattern, altPattern;
2437 generateTestCase(coll, monkeys, monkeyCount, pattern, altPattern);
2446 BoyerMooreSearch alt(data, altPattern, NULL, status);
2457 notFoundCount += bmMonkeyTestCase(coll, pattern, pattern, altPattern, &pat, &alt, "pattern", strengthNames[s], seed);
2464 notFoundCount += bmMonkeyTestCase(coll, testCase, pattern, altPattern, &pat, &alt, "prefix + pattern", strengthNames[s], seed);
2469 notFoundCount += bmMonkeyTestCase(coll, testCase, pattern, altPattern, &pat, &alt, "prefix + pattern + suffix", strengthNames[s], seed);
2476 notFoundCount += bmMonkeyTestCase(coll, testCase, pattern, altPattern, &pat, &alt, "pattern + suffix", strengthNames[s], seed);