Home
last modified time | relevance | path

Searched refs:pat (Results 1 – 6 of 6) sorted by relevance

/libcore/luni/src/test/java/org/apache/harmony/regex/tests/java/util/regex/
DPatternTest.java100 Pattern pat = Pattern.compile("x"); in testSplitCharSequence() local
103 s = pat.split("zxx:zzz:zxx", 10); in testSplitCharSequence()
105 s = pat.split("zxx:zzz:zxx", 3); in testSplitCharSequence()
107 s = pat.split("zxx:zzz:zxx", -1); in testSplitCharSequence()
109 s = pat.split("zxx:zzz:zxx", 0); in testSplitCharSequence()
112 pat = Pattern.compile("b"); in testSplitCharSequence()
113 s = pat.split("abccbadfebb"); in testSplitCharSequence()
115 s = pat.split(""); in testSplitCharSequence()
118 pat = Pattern.compile(""); in testSplitCharSequence()
119 s = pat.split(""); in testSplitCharSequence()
[all …]
DPattern2Test.java108 String pat = "\\p"+pa; in testCategory() local
110 Pattern p = Pattern.compile(pat); in testCategory()
119 "by pattern '"+pat, p.matcher(t).matches()); in testCategory()
124 "by pattern '"+pat, p.matcher(t).matches()); in testCategory()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/regex/
DMatcherTest.java79 Pattern pat = Pattern.compile("XX"); in testAppendReplacement() local
80 Matcher m = pat.matcher("Today is XX-XX-XX ..."); in testAppendReplacement()
105 Pattern pat = Pattern.compile(pattern); in testReplaceAll() local
106 Matcher mat = pat.matcher(input); in testReplaceAll()
140 Pattern pat = Pattern.compile(pattern); in testReplaceFirst() local
141 Matcher mat = pat.matcher(input); in testReplaceFirst()
290 Pattern pat = Pattern.compile("((a)|(b))++c"); in testGroupPossessive() local
291 Matcher mat = pat.matcher("aac"); in testGroupPossessive()
316 Pattern pat = Pattern.compile(testPatterns[i]); in testMatchesMisc() local
318 Matcher mat = pat.matcher(posSeq[i][j]); in testMatchesMisc()
[all …]
DMatcher2Test.java223 Pattern pat = Pattern.compile(replacedString); in testReplacementBackSlash() local
224 Matcher mat = pat.matcher(str); in testReplacementBackSlash()
/libcore/luni/src/test/java/libcore/java/util/regex/
DOldMatcherTest.java31 Pattern pat = Pattern.compile("XX"); in testAppendReplacement() local
32 Matcher m = pat.matcher("Today is XX-XX-XX ..."); in testAppendReplacement()
41 pat = Pattern.compile("cat"); in testAppendReplacement()
42 m = pat.matcher("one-cat-two-cats-in-the-yard"); in testAppendReplacement()
66 Pattern pat = Pattern.compile(testPattern); in test_resetLjava_lang_String() local
67 Matcher mat = pat.matcher(testString1); in test_resetLjava_lang_String()
114 Pattern pat = Pattern.compile(testPattern); in test_reset() local
115 Matcher mat = pat.matcher(testString); in test_reset()
125 Pattern pat = Pattern.compile(testPattern); in test_hasAnchoringBounds() local
126 Matcher mat = pat.matcher(testString); in test_hasAnchoringBounds()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DMessageFormatTest.java938 String pat="text here {0, date, yyyyyyyyy } and here"; in test_format_Object() local
940 MessageFormat obj = new MessageFormat(pat); in test_format_Object()