Lines Matching defs:pattern
110 // REGEX_TESTLM("pattern", "input text", lookingAt expected, matches expected);
113 // The input text is unescaped. The pattern is not.
121 const UnicodeString pattern(pat, -1, US_INV);
190 // REGEX_ERR("pattern", expected error line, column, expected status);
197 UnicodeString pattern(pat);
204 // Compile the caller's pattern
209 dataerrln("Line %d: unexpected error %s compiling pattern.", line, u_errorName(status));
226 // Basic Check for basic functionality of regex pattern matching.
251 // Pattern with parentheses
297 // UnicodeSets in the pattern
398 // Simple pattern compilation
427 REGEX_ASSERT(&m1->pattern() == pat2);
635 // find, with \G in pattern (true if at the end of a previous match).
672 RegexMatcher m("(?= ?)", 0, status); // This pattern will zero-length matches anywhere,
701 // with pattern of /.?/, should see a series of one char matches, then a single
882 // Adding the capturing parentheses to the pattern "(A)+A$" inhibits optimizations
906 // A pattern that doesn't save state should work with
1187 // Verify that a matcher created from a cloned pattern works.
1283 // split, with a pattern with (capture)
1373 // RegexPattern::pattern()
1376 REGEX_ASSERT(pat1->pattern() == "");
1381 REGEX_ASSERT(pat1->pattern() == "(Hello, world)*");
1455 UnicodeString testPattern; // The pattern for test from the test file.
1482 // Separate out the three main fields - pattern, flags, target.
1492 // Pull out the pattern field, remove it from the test file line.
1499 errln("Bad pattern (missing quotes?) at test file line %d", lineNum);
1553 // regex_find(pattern, flags, inputString, lineNumber)
1557 // pattern and inputString fields, and the allowed flags.
1578 void RegexTest::regex_find(const UnicodeString &pattern,
1603 // Compile the caller's pattern
1627 callerPattern = RegexPattern::compile(pattern, bflags, pe, status);
1630 // 'v' test flag means that the test pattern should not compile if ICU was configured
1637 // Expected pattern compilation error.
1639 logln("Pattern Compile returns \"%s\"", u_errorName(status));
1643 // Unexpected pattern compilation error.
1644 errln("Line %d: error %s compiling pattern.", line, u_errorName(status));
1654 errln("Expected, but did not get, a pattern compilation error.");
1742 // Do a find on the de-tagged input using the caller's pattern
1827 errln((UnicodeString)"\""+pattern+(UnicodeString)"\" "
2024 // # Column 1 contains the pattern, optionally enclosed in C<''>.
2100 // Test patterns with flags look like 'pattern'i
2101 // Test patterns without flags are not quoted: pattern
2102 // Coming out, capture group 2 is the pattern, capture group 3 is the flags.
2148 UnicodeString pattern = flagMat->group(2, status);
2149 pattern.findAndReplace("${bang}", "!");
2150 pattern.findAndReplace(nulnulSrc, UNICODE_STRING_SIMPLE("\\u0000\\u0000"));
2151 pattern.findAndReplace(ffffSrc, ffff);
2179 // Compile the test pattern.
2182 RegexPattern *testPat = RegexPattern::compile(pattern, flags, pe, status);
2213 // This pattern should have caused a compilation error, but didn't/
2214 errln("line %d: Expected a pattern compile error, got success.", lineNum);
2400 // Use this pattern,
2407 UnicodeString pattern("(a?){1,}");
2412 RegexMatcher matcher(pattern, s, flags, status);
2471 RegexMatcher matcher(UNICODE_STRING_SIMPLE("((.)+\\2)+x"), 0, status); // A pattern that can run long.