Lines Matching refs:Matcher

46  * the Pattern and Matcher classes.
158 private static void check(Matcher m, String expected) {
164 private static void check(Matcher m, String result, boolean expected) {
176 Matcher matcher = Pattern.compile(p).matcher(s);
185 Matcher matcher = pattern.matcher(new String(ca));
194 Matcher matcher = pattern.matcher(new String(ca));
203 Matcher matcher = pattern.matcher(input);
278 final Matcher m = Pattern.compile("xyz").matcher("xyz");
285 check(new Runnable() { public void run() { Matcher.quoteReplacement(null);}});
295 Matcher matcher = pattern.matcher("\ud834\udd22");
301 // Test toMatchResult to see that it is a copy of the Matcher
305 Matcher matcher = pattern.matcher(
335 Matcher m = p.matcher("squack");
380 Matcher m = p.matcher(testString);
406 Matcher matcher = pattern.matcher("\r");
423 Matcher matcher = pattern.matcher("");
455 private static void twoFindIndexes(String input, Matcher matcher, int a,
471 Matcher m = p.matcher(input);
521 Matcher matcher = pattern.matcher("catdogca");
575 Matcher match = pat.matcher(message);
588 Matcher matcher = pattern.matcher("\u203A");
655 Matcher matcher = pattern.matcher("aaabbbccc");
788 Matcher matcher = pattern.matcher("zzzabczzz");
834 Matcher matcher = pattern.matcher("abcdefabc");
923 private static void expectRegionFail(Matcher matcher, int index1,
983 Matcher m = p.matcher(input);
999 Matcher matcher = pattern.matcher("abcd");
1194 Matcher matcher = findCR.matcher("first bit\nsecond bit");
1225 Matcher m = p.matcher("ababcdefdec");
1248 Matcher matcher = serializedPattern.matcher(matchStr);
1259 Matcher matcher = pattern.matcher("abc#x#x");
1311 Matcher matcher = pattern.matcher("abccczzzabcczzzabccc");
1376 Matcher matcher = pattern.matcher("aa\u2028blah");
1417 Matcher matcher = pattern.matcher("aa#aa");
1503 Matcher matcher = pattern.matcher("ab");
1592 Matcher matcher = pattern.matcher("abcd");
1740 Matcher matcher = pattern.matcher("@@@@[[[[^^^^");
1781 Matcher matcher = pattern.matcher("\u0007");
1845 Matcher matcher = pattern.matcher("testing");
1926 Matcher m = p.matcher("zzzzblahzzzzzblah");
1955 Matcher m = p.matcher("foo");
2040 Matcher matcher = pattern.matcher("a#bc#def##g");
2111 Matcher matcher = pattern.matcher("xxxyyyzzz");
2219 Matcher m = p.matcher("blah1\r\nblah2");
2299 * A basic sanity test of Matcher.lookingAt().
2303 Matcher m = p.matcher("abccczzzabcczzzabccc");
2333 * A basic sanity test of Matcher.matches().
2338 Matcher m = p.matcher("ulbcccccc");
2430 Matcher m = p.matcher("test\u00e5");
2539 * A basic sanity test of Matcher.replaceAll().
2544 Matcher m = p.matcher("abccczzzabcczzzabccc");
2581 * Tests the usage of Matcher.appendReplacement() with literal
2588 Matcher m = p.matcher(blah);
2908 Matcher m = p.matcher(baseString);
2958 Matcher m = p.matcher("#");
2981 Matcher m = p.matcher("");
3037 Matcher m = p.matcher("");
3111 Matcher m = p.matcher("");
3202 Matcher m = p.matcher(dataString);
3242 private static int preMatchInvariants(Matcher m) {
3259 private static int postFalseMatchInvariants(Matcher m) {
3276 private static int postTrueMatchInvariants(Matcher m) {
3343 Matcher m = p.matcher(s);
3375 private static void checkExpectedFail(Matcher m, String g) {
3503 // backref in Matcher & String
3524 Matcher m = p.matcher(new String(new int[] {0x1d400}, 0, 1));
3559 Matcher common = Pattern.compile("\\p{script=Common}").matcher("");
3560 Matcher unknown = Pattern.compile("\\p{IsUnknown}").matcher("");
3561 Matcher lastSM = common;
3564 Matcher latin = Pattern.compile("\\p{block=basic_latin}").matcher("");
3565 Matcher greek = Pattern.compile("\\p{InGreek}").matcher("");
3566 Matcher lastBM = latin;
3576 Matcher m;
3587 Matcher other = (script == Character.UnicodeScript.COMMON)? unknown : common;
3664 Matcher lower = Pattern.compile("\\p{Lower}").matcher("");
3665 Matcher upper = Pattern.compile("\\p{Upper}").matcher("");
3666 Matcher ASCII = Pattern.compile("\\p{ASCII}").matcher("");
3667 Matcher alpha = Pattern.compile("\\p{Alpha}").matcher("");
3668 Matcher digit = Pattern.compile("\\p{Digit}").matcher("");
3669 Matcher alnum = Pattern.compile("\\p{Alnum}").matcher("");
3670 Matcher punct = Pattern.compile("\\p{Punct}").matcher("");
3671 Matcher graph = Pattern.compile("\\p{Graph}").matcher("");
3672 Matcher print = Pattern.compile("\\p{Print}").matcher("");
3673 Matcher blank = Pattern.compile("\\p{Blank}").matcher("");
3674 Matcher cntrl = Pattern.compile("\\p{Cntrl}").matcher("");
3675 Matcher xdigit = Pattern.compile("\\p{XDigit}").matcher("");
3676 Matcher space = Pattern.compile("\\p{Space}").matcher("");
3677 Matcher bound = Pattern.compile("\\b").matcher("");
3678 Matcher word = Pattern.compile("\\w++").matcher("");
3680 Matcher lowerU = Pattern.compile("\\p{Lower}", Pattern.UNICODE_CHARACTER_CLASS).matcher("");
3681 Matcher upperU = Pattern.compile("\\p{Upper}", Pattern.UNICODE_CHARACTER_CLASS).matcher("");
3682 Matcher ASCIIU = Pattern.compile("\\p{ASCII}", Pattern.UNICODE_CHARACTER_CLASS).matcher("");
3683 Matcher alphaU = Pattern.compile("\\p{Alpha}", Pattern.UNICODE_CHARACTER_CLASS).matcher("");
3684 Matcher digitU = Pattern.compile("\\p{Digit}", Pattern.UNICODE_CHARACTER_CLASS).matcher("");
3685 Matcher alnumU = Pattern.compile("\\p{Alnum}", Pattern.UNICODE_CHARACTER_CLASS).matcher("");
3686 Matcher punctU = Pattern.compile("\\p{Punct}", Pattern.UNICODE_CHARACTER_CLASS).matcher("");
3687 Matcher graphU = Pattern.compile("\\p{Graph}", Pattern.UNICODE_CHARACTER_CLASS).matcher("");
3688 Matcher printU = Pattern.compile("\\p{Print}", Pattern.UNICODE_CHARACTER_CLASS).matcher("");
3689 Matcher blankU = Pattern.compile("\\p{Blank}", Pattern.UNICODE_CHARACTER_CLASS).matcher("");
3690 Matcher cntrlU = Pattern.compile("\\p{Cntrl}", Pattern.UNICODE_CHARACTER_CLASS).matcher("");
3691 Matcher xdigitU = Pattern.compile("\\p{XDigit}", Pattern.UNICODE_CHARACTER_CLASS).matcher("");
3692 Matcher spaceU = Pattern.compile("\\p{Space}", Pattern.UNICODE_CHARACTER_CLASS).matcher("");
3693 Matcher boundU = Pattern.compile("\\b", Pattern.UNICODE_CHARACTER_CLASS).matcher("");
3694 Matcher wordU = Pattern.compile("\\w", Pattern.UNICODE_CHARACTER_CLASS).matcher("");
3696 Matcher lowerEU = Pattern.compile("(?U)\\p{Lower}", Pattern.UNICODE_CHARACTER_CLASS).matcher("");
3697 Matcher graphEU = Pattern.compile("(?U)\\p{Graph}", Pattern.UNICODE_CHARACTER_CLASS).matcher("");
3698 Matcher wordEU = Pattern.compile("(?U)\\w", Pattern.UNICODE_CHARACTER_CLASS).matcher("");
3700 Matcher bwb = Pattern.compile("\\b\\w\\b").matcher("");
3701 Matcher bwbU = Pattern.compile("\\b\\w++\\b", Pattern.UNICODE_CHARACTER_CLASS).matcher("");
3702 Matcher bwbEU = Pattern.compile("(?U)\\b\\w++\\b", Pattern.UNICODE_CHARACTER_CLASS).matcher("");
3704 Matcher lowerP = Pattern.compile("\\p{IsLowerCase}").matcher("");
3705 Matcher upperP = Pattern.compile("\\p{IsUpperCase}").matcher("");
3706 Matcher titleP = Pattern.compile("\\p{IsTitleCase}").matcher("");
3707 Matcher letterP = Pattern.compile("\\p{IsLetter}").matcher("");
3708 Matcher alphaP = Pattern.compile("\\p{IsAlphabetic}").matcher("");
3709 Matcher ideogP = Pattern.compile("\\p{IsIdeographic}").matcher("");
3710 Matcher cntrlP = Pattern.compile("\\p{IsControl}").matcher("");
3711 Matcher spaceP = Pattern.compile("\\p{IsWhiteSpace}").matcher("");
3712 Matcher definedP = Pattern.compile("\\p{IsAssigned}").matcher("");
3713 Matcher nonCCPP = Pattern.compile("\\p{IsNoncharacterCodePoint}").matcher("");
3716 Matcher lowerJ = Pattern.compile("\\p{javaLowerCase}").matcher("");
3717 Matcher upperJ = Pattern.compile("\\p{javaUpperCase}").matcher("");
3718 Matcher alphaJ = Pattern.compile("\\p{javaAlphabetic}").matcher("");
3719 Matcher ideogJ = Pattern.compile("\\p{javaIdeographic}").matcher("");