Home
last modified time | relevance | path

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

/libcore/luni/src/test/java/org/apache/harmony/regex/tests/java/util/regex/
DPatternTest.java96 Pattern p = Pattern.compile("a"); in testMatcher()
117 assertEquals(Pattern.compile("o").split("boo:and:foo", 5).length, 5); in testSplitCharSequenceint()
118 assertEquals(Pattern.compile("b").split("ab", -1).length, 2); in testSplitCharSequenceint()
121 Pattern pat = Pattern.compile("x"); in testSplitCharSequenceint()
132 pat = Pattern.compile("b"); in testSplitCharSequenceint()
137 pat = Pattern.compile(""); in testSplitCharSequenceint()
143 pat = Pattern.compile("b"); in testSplitCharSequenceint()
148 pat = Pattern.compile(""); in testSplitCharSequenceint()
154 pat = Pattern.compile("b"); in testSplitCharSequenceint()
159 pat = Pattern.compile(""); in testSplitCharSequenceint()
[all …]
DPattern2Test.java44 Pattern p = Pattern.compile("foo.*"); in testSimpleMatch()
82 p = Pattern.compile("foo"); in testCursors()
149 p = Pattern.compile("(p[0-9]*)#?(q[0-9]*)"); in testGroups()
218 p = Pattern.compile("a*b"); in testReplace()
232 p = Pattern.compile("([bB])yte"); in testReplace()
238 p = Pattern.compile("\\d\\d\\d\\d([- ])"); in testReplace()
244 p = Pattern.compile("(up|left)( *)(right|down)"); in testReplace()
250 p = Pattern.compile("([CcPp][hl]e[ea]se)"); in testReplace()
278 p = Pattern.compile("([a-z]+)\\\\([a-z]+);"); in testEscapes()
292 p = Pattern.compile("([a-z]+)[\\n\\t\\r\\f\\e\\a]+([a-z]+)"); in testEscapes()
[all …]
DPatternErrorTest.java50 Pattern.compile(null); in testCompileErrors()
57 Pattern.compile(""); in testCompileErrors()
63 Pattern.compile("foo", flags); in testCompileErrors()
76 Pattern.compile("foo", flags); in testCompileErrors()
101 Pattern.compile("foo", flags); in testCompileErrors()
DModeTest.java54 p = Pattern.compile("([a-z]+)[0-9]+"); in testCase()
61 p = Pattern.compile("([a-z]+)[0-9]+", Pattern.CASE_INSENSITIVE); in testCase()
70 p = Pattern.compile("(?i)([a-z]+)[0-9]+"); in testCase()
96 p = Pattern.compile("^foo"); in testMultiline()
106 p = Pattern.compile("foo$"); in testMultiline()
116 p = Pattern.compile("^foo([0-9]*)", Pattern.MULTILINE); in testMultiline()
125 p = Pattern.compile("foo([0-9]*)$", Pattern.MULTILINE); in testMultiline()
134 p = Pattern.compile("(?m)^foo([0-9]*)"); in testMultiline()
142 p = Pattern.compile("(?m)foo([0-9]*)$"); in testMultiline()
DReplaceTest.java52 Pattern p = Pattern.compile(pattern); in testSimpleReplace()
82 p = Pattern.compile(pattern); in testCaptureReplace()
92 p = Pattern.compile(pattern); in testCaptureReplace()
DSplitTest.java32 Pattern p = Pattern.compile("/"); in testSimple()
98 Pattern p = Pattern.compile(" "); in testSplit1()
127 p = Pattern.compile("d"); in testSplit1()
153 p = Pattern.compile("o"); in testSplit1()
195 Pattern p = Pattern.compile(""); in testSplit2()
241 Pattern p = Pattern.compile(""); in testSplitSupplementaryWithEmptyString()
DMatcher2Test.java41 Pattern p = Pattern.compile("foo"); in test_toString()
92 Pattern p = Pattern.compile("foo"); in testErrorConditions()
175 Pattern p = Pattern.compile("(foo[0-9])(bar[a-z])"); in testErrorConditions2()
318 Pattern pat = Pattern.compile(replacedString); in testReplacementBackSlash()
/libcore/luni/src/test/java/libcore/java/util/regex/
DOldMatcherTest.java50 Pattern pat = Pattern.compile("XX"); in testAppendReplacement()
60 pat = Pattern.compile("cat"); in testAppendReplacement()
95 Pattern pat = Pattern.compile(testPattern); in test_resetLjava_lang_String()
112 Pattern p = Pattern.compile("cat"); in testAppendTail()
121 p = Pattern.compile("cat|yard"); in testAppendTail()
131 p = Pattern.compile("cat"); in testAppendTail()
159 Pattern pat = Pattern.compile(testPattern); in test_reset()
180 Pattern pat = Pattern.compile(testPattern); in test_hasAnchoringBounds()
208 Pattern pat = Pattern.compile(testPattern); in test_hasTransparentBounds()
236 Pattern pat = Pattern.compile(testPattern); in test_startI()
[all …]
/libcore/luni/src/main/java/java/util/regex/
DPattern.java366 … public static Pattern compile(String regularExpression, int flags) throws PatternSyntaxException { in compile() method in Pattern
373 public static Pattern compile(String pattern) { in compile() method in Pattern
383 compile(); in Pattern()
386 private void compile() throws PatternSyntaxException { in compile() method in Pattern
445 compile(); in readObject()
/libcore/luni/src/main/java/org/apache/xpath/compiler/
DCompiler.java114 public Expression compile(int opPos) throws TransformerException in compile() method in Compiler
124 expr = compile(opPos + 2); break; in compile()
216 operation.setLeftRight(compile(leftPos), compile(rightPos)); in compileOperation()
237 unary.setRight(compile(rightPos)); in compileUnary()
570 return compile(opPos + 2); in group()
586 return compile(opPos + 2); in arg()
666 return compile(opPos + 2); in predicate()
693 return compile(opPos); in matchPattern()
701 patterns[i] = (StepPattern) compile(opPos); in matchPattern()
1052 func.setArg(compile(p), i); in compileFunction()
[all …]
/libcore/sqlite-jdbc/src/main/java/SQLite/
DVm.java55 public native boolean compile() throws SQLite.Exception; in compile() method in Vm
DDatabase.java307 Vm vm = compile(sql); in get_table()
360 Vm vm = compile(sql, args); in get_table()
415 Vm vm = compile(sql, args); in get_table()
605 public Vm compile(String sql) throws SQLite.Exception { in compile() method in Database
622 public Vm compile(String sql, String args[]) throws SQLite.Exception { in compile() method in Database
/libcore/luni/src/main/java/java/util/
DScanner.java65 .compile("\\p{javaWhitespace}+");
68 private static final Pattern BOOLEAN_PATTERN = Pattern.compile(
83 LINE_TERMINATOR = Pattern.compile(terminator);
89 MULTI_LINE_TERMINATOR = Pattern.compile(multiTerminator.append("(")
92 LINE_PATTERN = Pattern.compile(line.append(".*(")
98 private static final Pattern ANY_PATTERN = Pattern.compile("(?s).*");
435 return findInLine(Pattern.compile(pattern)); in findInLine()
546 return findWithinHorizon(Pattern.compile(pattern), horizon); in findWithinHorizon()
611 return hasNext(Pattern.compile(pattern)); in hasNext()
1050 return next(Pattern.compile(pattern)); in next()
[all …]
/libcore/luni/src/main/java/javax/xml/xpath/
DXPath.java180 public XPathExpression compile(String expression) in compile() method
/libcore/luni/src/main/java/org/apache/xpath/axes/
DFilterExprWalker.java76 m_expr = compiler.compile(opPos); in init()
86 m_expr = compiler.compile(opPos + 2); in init()
DWalkerFactory.java1008 expr = compiler.compile(opPos); in createDefaultStepPattern()
1011 expr = compiler.compile(opPos + 2); in createDefaultStepPattern()
/libcore/luni/src/test/java/tests/api/java/util/
DScannerTest.java477 s.useDelimiter(Pattern.compile("\\w+")); in test_useDelimiter_LPattern()
850 s = new Scanner("test\ntest").useDelimiter(Pattern.compile("^", in test_next()
855 s = new Scanner("").useDelimiter(Pattern.compile("^", in test_next()
864 s = new Scanner("").useDelimiter(Pattern.compile("^*", in test_next()
873 s = new Scanner("test\ntest").useDelimiter(Pattern.compile("^*", in test_next()
878 s = new Scanner("\ntest\ntest").useDelimiter(Pattern.compile("$", in test_next()
926 pattern = Pattern.compile("a*b"); in test_nextLPattern()
936 pattern = Pattern.compile("\\w+"); in test_nextLPattern()
946 pattern = Pattern.compile("\\w+"); in test_nextLPattern()
963 pattern = Pattern.compile("a*b"); in test_nextLPattern()
[all …]
/libcore/luni/src/main/native/
Djava_util_regex_Pattern.cpp57 RegexPattern* result = RegexPattern::compile(regexString, flags, error, status); in Pattern_compileImpl()
/libcore/luni/src/main/java/org/apache/xpath/
DXPath.java185 Expression expr = compiler.compile(0); in XPath()
237 Expression expr = compiler.compile(0); in XPath()
/libcore/luni/src/test/java/tests/SQLite/
DDatabaseTest.java1463 db.compile("select name from sqlite_master;"); in testCompileString()
1469 db.compile("test"); in testCompileString()
1489 db.compile("select name from sqlite_master where type = '%q';",args); in testCompileStringStringArray()
1495 db.compile("test",null); in testCompileStringStringArray()
1682 Vm vm = db.compile("select * from TEST5; " in testProgress_handler()
1696 } while (vm.compile()); in testProgress_handler()
1708 Vm vm2 = db.compile("select * from TEST5; " in testProgress_handler()
1714 } while (vm2.compile()); in testProgress_handler()
/libcore/luni/src/test/java/libcore/java/security/
DProviderTest.java114 private static final Pattern alias = Pattern.compile("Alg\\.Alias\\.([^.]*)\\.(.*)");
/libcore/luni/src/main/java/org/apache/harmony/luni/util/
DHexStringParser.java49 private static final Pattern PATTERN = Pattern.compile(HEX_PATTERN);
/libcore/luni/src/main/java/java/lang/
DString.java1963 return Pattern.compile(regularExpression).matcher(this).replaceAll(replacement); in replaceAll()
1982 return Pattern.compile(regularExpression).matcher(this).replaceFirst(replacement); in replaceFirst()
2021 return result != null ? result : Pattern.compile(regularExpression).split(this, limit); in split()
/libcore/luni/src/main/java/org/apache/xpath/jaxp/
DXPathImpl.java391 public XPathExpression compile(String expression) in compile() method in XPathImpl
/libcore/luni/src/test/java/tests/xml/
DDomTest.java1410 Matcher attributeMatcher = Pattern.compile(" a:standard=\"[^\"]+\"").matcher(result); in domToString()