/libcore/luni/src/test/java/org/apache/harmony/regex/tests/java/util/regex/ |
D | PatternTest.java | 96 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 …]
|
D | Pattern2Test.java | 44 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 …]
|
D | PatternErrorTest.java | 50 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()
|
D | ModeTest.java | 54 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()
|
D | ReplaceTest.java | 52 Pattern p = Pattern.compile(pattern); in testSimpleReplace() 82 p = Pattern.compile(pattern); in testCaptureReplace() 92 p = Pattern.compile(pattern); in testCaptureReplace()
|
D | SplitTest.java | 32 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()
|
D | Matcher2Test.java | 41 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/ |
D | OldMatcherTest.java | 50 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/ |
D | Pattern.java | 366 … 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/ |
D | Compiler.java | 114 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/ |
D | Vm.java | 55 public native boolean compile() throws SQLite.Exception; in compile() method in Vm
|
D | Database.java | 307 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/ |
D | Scanner.java | 65 .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/ |
D | XPath.java | 180 public XPathExpression compile(String expression) in compile() method
|
/libcore/luni/src/main/java/org/apache/xpath/axes/ |
D | FilterExprWalker.java | 76 m_expr = compiler.compile(opPos); in init() 86 m_expr = compiler.compile(opPos + 2); in init()
|
D | WalkerFactory.java | 1008 expr = compiler.compile(opPos); in createDefaultStepPattern() 1011 expr = compiler.compile(opPos + 2); in createDefaultStepPattern()
|
/libcore/luni/src/test/java/tests/api/java/util/ |
D | ScannerTest.java | 477 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/ |
D | java_util_regex_Pattern.cpp | 57 RegexPattern* result = RegexPattern::compile(regexString, flags, error, status); in Pattern_compileImpl()
|
/libcore/luni/src/main/java/org/apache/xpath/ |
D | XPath.java | 185 Expression expr = compiler.compile(0); in XPath() 237 Expression expr = compiler.compile(0); in XPath()
|
/libcore/luni/src/test/java/tests/SQLite/ |
D | DatabaseTest.java | 1463 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/ |
D | ProviderTest.java | 114 private static final Pattern alias = Pattern.compile("Alg\\.Alias\\.([^.]*)\\.(.*)");
|
/libcore/luni/src/main/java/org/apache/harmony/luni/util/ |
D | HexStringParser.java | 49 private static final Pattern PATTERN = Pattern.compile(HEX_PATTERN);
|
/libcore/luni/src/main/java/java/lang/ |
D | String.java | 1963 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/ |
D | XPathImpl.java | 391 public XPathExpression compile(String expression) in compile() method in XPathImpl
|
/libcore/luni/src/test/java/tests/xml/ |
D | DomTest.java | 1410 Matcher attributeMatcher = Pattern.compile(" a:standard=\"[^\"]+\"").matcher(result); in domToString()
|