Home
last modified time | relevance | path

Searched refs:compile (Results 1 – 25 of 29) sorted by relevance

12

/libcore/luni/src/test/java/org/apache/harmony/regex/tests/java/util/regex/
DPatternTest.java74 Pattern p = Pattern.compile("a"); in testMatcher()
86 assertEquals(Pattern.compile("o").split("boo:and:foo", 5).length, 5); in testSplitCharSequenceInt()
87 assertEquals(Pattern.compile("b").split("ab", -1).length, 2); in testSplitCharSequenceInt()
90 Pattern pat = Pattern.compile("x"); in testSplitCharSequenceInt()
101 pat = Pattern.compile("b"); in testSplitCharSequenceInt()
106 pat = Pattern.compile(""); in testSplitCharSequenceInt()
112 pat = Pattern.compile("b"); in testSplitCharSequenceInt()
117 pat = Pattern.compile(""); in testSplitCharSequenceInt()
123 pat = Pattern.compile("b"); in testSplitCharSequenceInt()
128 pat = Pattern.compile(""); in testSplitCharSequenceInt()
[all …]
DPattern2Test.java110 Pattern p = Pattern.compile(pat); in testCategory()
111 Pattern pn = Pattern.compile(npat); in testCategory()
136 p = Pattern.compile("(a+)b"); in testCapturingGroups()
142 p = Pattern.compile("((an)+)((as)+)"); in testCapturingGroups()
153 p = Pattern.compile("(?:(?:an)+)(as)"); in testCapturingGroups()
172 p = Pattern.compile("((an)+)as\\1"); in testCapturingGroups()
177 p = Pattern.compile("((an)+)as\\4"); in testCapturingGroups()
189 p = Pattern.compile("(abc)?c"); in testRepeats()
200 p = Pattern.compile("(abc)*c"); in testRepeats()
211 p = Pattern.compile("(abc)+c"); in testRepeats()
[all …]
DModeTest.java34 p = Pattern.compile("([a-z]+)[0-9]+"); in testCase()
41 p = Pattern.compile("([a-z]+)[0-9]+", Pattern.CASE_INSENSITIVE); in testCase()
50 p = Pattern.compile("(?i)([a-z]+)[0-9]+"); in testCase()
62 p = Pattern.compile("^foo"); in testMultiline()
72 p = Pattern.compile("foo$"); in testMultiline()
82 p = Pattern.compile("^foo([0-9]*)", Pattern.MULTILINE); in testMultiline()
91 p = Pattern.compile("foo([0-9]*)$", Pattern.MULTILINE); in testMultiline()
100 p = Pattern.compile("(?m)^foo([0-9]*)"); in testMultiline()
108 p = Pattern.compile("(?m)foo([0-9]*)$"); in testMultiline()
DReplaceTest.java32 Pattern p = Pattern.compile(pattern); in testSimpleReplace()
48 p = Pattern.compile(pattern); in testCaptureReplace()
58 p = Pattern.compile(pattern); in testCaptureReplace()
DSplitTest.java12 Pattern p = Pattern.compile("/"); in testSimple()
64 Pattern p = Pattern.compile(" "); in testSplit1()
93 p = Pattern.compile("d"); in testSplit1()
119 p = Pattern.compile("o"); in testSplit1()
155 Pattern p = Pattern.compile(""); in testSplit2()
187 Pattern p = Pattern.compile(""); in testSplitSupplementaryWithEmptyString()
DMatcher2Test.java29 Pattern p = Pattern.compile("foo"); in test_toString()
36 Pattern p = Pattern.compile("foo"); in testErrorConditions()
87 Pattern p = Pattern.compile("(foo[0-9])(bar[a-z])"); in testErrorConditions2()
224 Pattern pat = Pattern.compile(replacedString); in testReplacementBackSlash()
DPatternSyntaxExceptionTest.java92 Pattern.compile(regex); in testCase()
103 Pattern.compile(regex); in testCase2()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/regex/
DPattern2Test.java31 Pattern p = Pattern.compile("foo.*"); in testSimpleMatch()
56 p = Pattern.compile("foo"); in testCursors()
110 p = Pattern.compile("(p[0-9]*)#?(q[0-9]*)"); in testGroups()
165 p = Pattern.compile("a*b"); in testReplace()
179 p = Pattern.compile("([bB])yte"); in testReplace()
185 p = Pattern.compile("\\d\\d\\d\\d([- ])"); in testReplace()
191 p = Pattern.compile("(up|left)( *)(right|down)"); in testReplace()
197 p = Pattern.compile("([CcPp][hl]e[ea]se)"); in testReplace()
211 p = Pattern.compile("([a-z]+)\\\\([a-z]+);"); in testEscapes()
225 p = Pattern.compile("([a-z]+)[\\n\\t\\r\\f\\e\\a]+([a-z]+)"); in testEscapes()
[all …]
DMatcherTest.java44 Pattern p = Pattern.compile("x*"); in testRegionsIntInt()
79 Pattern pat = Pattern.compile("XX"); in testAppendReplacement()
91 Pattern p = Pattern.compile("xx (rur|\\$)"); in testAppendReplacementRef()
105 Pattern pat = Pattern.compile(pattern); in testReplaceAll()
112 Pattern p = Pattern.compile("abcd"); in testResetCharSequence()
126 Pattern p = Pattern.compile("\\\\"); in testAppendSlashes()
140 Pattern pat = Pattern.compile(pattern); in testReplaceFirst()
148 Pattern test = Pattern.compile(element); in testPattern()
153 assertEquals(element, Pattern.compile(element).matcher("aaa") in testPattern()
167 Pattern test = Pattern.compile(groupPatterns[i]); in testGroupint()
[all …]
DPatternErrorTest.java31 Pattern.compile(null); in testCompileErrors()
37 Pattern.compile(""); in testCompileErrors()
43 Pattern.compile("foo", flags); in testCompileErrors()
54 Pattern.compile("foo", flags); in testCompileErrors()
61 Pattern.compile("foo", flags); in testCompileErrors()
DModeTest.java34 p = Pattern.compile("([a-z]+)[0-9]+"); in testCase()
40 p = Pattern.compile("([a-z]+)[0-9]+", Pattern.CASE_INSENSITIVE); in testCase()
48 p = Pattern.compile("(?i)([a-z]+)[0-9]+"); in testCase()
61 p = Pattern.compile("^foo"); in testMultiline()
70 p = Pattern.compile("foo$"); in testMultiline()
79 p = Pattern.compile("^foo([0-9]*)", Pattern.MULTILINE); in testMultiline()
87 p = Pattern.compile("foo([0-9]*)$", Pattern.MULTILINE); in testMultiline()
95 p = Pattern.compile("(?m)^foo([0-9]*)"); in testMultiline()
103 p = Pattern.compile("(?m)foo([0-9]*)$"); in testMultiline()
DSplitTest.java32 Pattern p = Pattern.compile("/"); in testSimple()
42 Pattern p = Pattern.compile(" "); in testSplit1()
71 p = Pattern.compile("d"); in testSplit1()
97 p = Pattern.compile("o"); in testSplit1()
133 Pattern p = Pattern.compile(""); in testSplit2()
161 Pattern p = Pattern.compile(""); in testSplitSupplementaryWithEmptyString()
DReplaceTest.java35 Pattern p = Pattern.compile(pattern); in testSimpleReplace()
51 p = Pattern.compile(pattern); in testCaptureReplace()
61 p = Pattern.compile(pattern); in testCaptureReplace()
DMatcher2Test.java31 Pattern p = Pattern.compile("foo"); in test_toString()
38 Pattern p = Pattern.compile("foo"); in testErrorConditions()
89 Pattern p = Pattern.compile("(foo[0-9])(bar[a-z])"); in testErrorConditions2()
226 Pattern pat = Pattern.compile(replacedString); in testReplacementBackSlash()
/libcore/luni/src/test/java/libcore/java/util/regex/
DOldMatcherTest.java30 Pattern pat = Pattern.compile("XX"); in testAppendReplacement()
40 pat = Pattern.compile("cat"); in testAppendReplacement()
65 Pattern pat = Pattern.compile(testPattern); in test_resetLjava_lang_String()
76 Pattern p = Pattern.compile("cat"); in testAppendTail()
85 p = Pattern.compile("cat|yard"); in testAppendTail()
95 p = Pattern.compile("cat"); in testAppendTail()
113 Pattern pat = Pattern.compile(testPattern); in test_reset()
124 Pattern pat = Pattern.compile(testPattern); in test_hasAnchoringBounds()
142 Pattern pat = Pattern.compile(testPattern); in test_hasTransparentBounds()
160 Pattern pat = Pattern.compile(testPattern); in test_startI()
[all …]
DOldAndroidRegexTest.java27 Pattern p = Pattern.compile("bcd"); in testMatches()
32 p = Pattern.compile("bcd"); in testMatches()
45 p = Pattern.compile(".*"); in testMatches()
51 p = Pattern.compile("."); in testMatches()
79 Pattern p = Pattern.compile( in testGroupCount()
96 Pattern p = Pattern.compile("(b)([c|d])(z*)"); in testGroups()
111 Pattern p = Pattern.compile("."); in testFind()
128 Pattern p = Pattern.compile("a*b"); in testReplaceAll()
135 p = Pattern.compile("a*b"); in testReplaceAll()
144 Pattern p = Pattern.compile("a*b"); in testReplaceFirst()
[all …]
/libcore/luni/src/main/java/java/util/regex/
DPattern.java373 … public static Pattern compile(String regularExpression, int flags) throws PatternSyntaxException { in compile() method in Pattern
380 public static Pattern compile(String pattern) { in compile() method in Pattern
394 compile(); in Pattern()
397 private void compile() throws PatternSyntaxException { in compile() method in Pattern
456 compile(); in readObject()
/libcore/benchmarks/src/benchmarks/regression/
DStringSplitBenchmark.java42 Pattern p = Pattern.compile(","); in timePatternSplitComma()
49 Pattern p = Pattern.compile("\\."); in timePatternSplitLiteralDot()
DSchemePrefixBenchmark.java58 private final Pattern pattern = Pattern.compile("^([a-zA-Z][a-zA-Z0-9+\\-.]*):"); in REGEX()
/libcore/luni/src/main/java/java/util/
DScanner.java67 private static final Pattern DEFAULT_DELIMITER = Pattern.compile("\\p{javaWhitespace}+");
70 …private static final Pattern BOOLEAN_PATTERN = Pattern.compile("true|false", Pattern.CASE_INSENSIT…
73 private static final Pattern LINE_TERMINATOR = Pattern.compile(NL);
76 private static final Pattern MULTI_LINE_TERMINATOR = Pattern.compile("(" + NL + ")+");
79 private static final Pattern LINE_PATTERN = Pattern.compile(".*(" + NL + ")|.+$");
82 private static final Pattern ANY_PATTERN = Pattern.compile("(?s).*");
410 return findInLine(Pattern.compile(pattern)); in findInLine()
513 return findWithinHorizon(Pattern.compile(pattern), horizon); in findWithinHorizon()
578 return hasNext(Pattern.compile(pattern)); in hasNext()
998 return next(Pattern.compile(pattern)); in next()
[all …]
DTimeZone.java71 …private static final Pattern CUSTOM_ZONE_ID_PATTERN = Pattern.compile("^GMT[-+](\\d{1,2})(:?(\\d\\…
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DScannerTest.java426 s.useDelimiter(Pattern.compile("\\w+")); in test_useDelimiter_LPattern()
729 s = new Scanner("test\ntest").useDelimiter(Pattern.compile("^", in test_next()
734 s = new Scanner("").useDelimiter(Pattern.compile("^", in test_next()
742 s = new Scanner("").useDelimiter(Pattern.compile("^*", in test_next()
750 s = new Scanner("test\ntest").useDelimiter(Pattern.compile("^*", in test_next()
755 s = new Scanner("\ntest\ntest").useDelimiter(Pattern.compile("$", in test_next()
789 pattern = Pattern.compile("a*b"); in test_nextLPattern()
798 pattern = Pattern.compile("\\w+"); in test_nextLPattern()
807 pattern = Pattern.compile("\\w+"); in test_nextLPattern()
823 pattern = Pattern.compile("a*b"); in test_nextLPattern()
[all …]
/libcore/luni/src/main/java/javax/xml/xpath/
DXPath.java180 public XPathExpression compile(String expression) in compile() method
/libcore/luni/src/main/native/
Djava_util_regex_Pattern.cpp90 RegexPattern* result = RegexPattern::compile(regexString, flags, error, status); in Pattern_compileImpl()
/libcore/luni/src/main/java/java/lang/
DHexStringParser.java53 private static final Pattern PATTERN = Pattern.compile(HEX_PATTERN);

12