| /libcore/luni/src/test/java/org/apache/harmony/regex/tests/java/util/regex/ |
| D | SplitTest.java | 13 String[] results = p.split("have/you/done/it/right"); in testSimple() 20 assertArraysEqual(new String[0], "hello".split(".")); in testEmptySplits() 21 assertArraysEqual(new String[] { "1", "2" }, "1:2:".split(":")); in testEmptySplits() 23 assertArraysEqual(new String[0], ":".split(":")); in testEmptySplits() 25 assertArraysEqual(new String[] { "1", "2", "" }, "1:2:".split(":", -1)); in testEmptySplits() 28 assertArraysEqual(new String[] { "", "", "o" }, "hello".split("..")); in testEmptySplits() 31 assertArraysEqual(new String[] { "hello" }, "hello".split("not-present-in-test")); in testEmptySplits() 34 assertArraysEqual(new String[] { "" }, "".split("not-present-in-test")); in testEmptySplits() 35 assertArraysEqual(new String[] { "" }, "".split("A?")); in testEmptySplits() 42 assertArraysEqual(new String[] { "a", "b", "c" }, "a,b,c".split(",", 0)); in testEmptySplits() [all …]
|
| D | PatternTest.java | 82 assertEquals(",,".split(",", 3).length, 3); in testSplitCharSequenceint() 83 assertEquals(",,".split(",", 4).length, 3); in testSplitCharSequenceint() 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() 91 s = pat.split("zxx:zzz:zxx", 10); in testSplitCharSequenceint() 93 s = pat.split("zxx:zzz:zxx", 3); in testSplitCharSequenceint() 95 s = pat.split("zxx:zzz:zxx", -1); in testSplitCharSequenceint() 97 s = pat.split("zxx:zzz:zxx", 0); in testSplitCharSequenceint() 102 s = pat.split("abccbadfebb", -1); in testSplitCharSequenceint() 104 s = pat.split("", -1); in testSplitCharSequenceint() [all …]
|
| /libcore/luni/src/test/java/libcore/java/util/regex/ |
| D | OldAndroidRegexTest.java | 162 strings = p.split("boo:and:foo"); in testSplit() 168 strings = p.split("boo:and:foo", 2); in testSplit() 173 strings = p.split("boo:and:foo", 5); in testSplit() 179 strings = p.split("boo:and:foo", -2); in testSplit() 187 strings = p.split("boo:and:foo"); in testSplit() 193 strings = p.split("boo:and:foo", 5); in testSplit() 201 strings = p.split("boo:and:foo", -2); in testSplit() 209 strings = p.split("boo:and:foo", 0); in testSplit()
|
| /libcore/luni/src/main/java/java/util/regex/ |
| D | Pattern.java | 321 public String[] split(CharSequence input, int limit) { in split() method in Pattern 322 return Splitter.split(this, pattern, input.toString(), limit); in split() 328 public String[] split(CharSequence input) { in split() method in Pattern 329 return split(input, 0); in split()
|
| D | Splitter.java | 78 public static String[] split(Pattern pattern, String re, String input, int limit) { in split() method in Splitter
|
| /libcore/luni/src/test/java/libcore/java/lang/ |
| D | OldStringTest.java | 222 patterns[i], Arrays.equals(results[i], str.split(patterns[i]))); in test_splitLString() 226 str.split("[a}"); in test_splitLString() 241 Arrays.equals(results[0], str.split(pattern, 4))); in test_splitLStringLint() 243 Arrays.equals(results[1], str.split(pattern, 9))); in test_splitLStringLint() 245 Arrays.equals(results[1], str.split(pattern, 0))); in test_splitLStringLint() 247 Arrays.equals(results[1], str.split(pattern, -1))); in test_splitLStringLint() 249 Arrays.equals(results[1], str.split(pattern, 10))); in test_splitLStringLint() 251 Arrays.equals(results[1], str.split(pattern, Integer.MAX_VALUE))); in test_splitLStringLint() 254 str.split("[a}", 0); in test_splitLStringLint()
|
| /libcore/luni/src/main/java/org/apache/harmony/xml/dom/ |
| D | CDATASectionImpl.java | 52 public void split() { in split() method in CDATASectionImpl 58 String[] parts = getData().split("\\]\\]>"); in split()
|
| D | DOMConfigurationImpl.java | 389 cdata.split();
|
| /libcore/luni/src/main/java/java/lang/ |
| D | Package.java | 244 String[] requested = version.split("\\."); in isCompatibleWith() 245 String[] provided = specVersion.split("\\."); in isCompatibleWith()
|
| D | System.java | 346 int split = assignment.indexOf('='); in parsePropertyAssignments() local 347 String key = assignment.substring(0, split); in parsePropertyAssignments() 348 String value = assignment.substring(split + 1); in parsePropertyAssignments()
|
| D | HexStringParser.java | 152 String[] strings = significantStr.split("\\."); in parseMantissa()
|
| D | Runtime.java | 98 mLibPaths = pathList.split(pathSep); in Runtime()
|
| D | String.java | 1822 public String[] split(String regularExpression) { in split() method in String 1823 return split(regularExpression, 0); in split() 1840 public String[] split(String regularExpression, int limit) { in split() method in String 1842 return result != null ? result : Pattern.compile(regularExpression).split(this, limit); in split()
|
| /libcore/luni/src/main/java/libcore/net/url/ |
| D | FtpURLConnection.java | 111 int split = parse.indexOf(':'); in FtpURLConnection() local 112 if (split >= 0) { in FtpURLConnection() 113 username = parse.substring(0, split); in FtpURLConnection() 114 password = parse.substring(split + 1); in FtpURLConnection()
|
| /libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/ |
| D | Logger.java | 96 names = System.getProperty("jsse", "").split(",");
|
| /libcore/support/src/test/java/tests/util/ |
| D | ClassLoaderBuilder.java | 142 for (String pathElement : classpath.split(File.pathSeparator)) { in classpathToUrls()
|
| /libcore/support/src/test/java/tests/support/ |
| D | Support_Exec.java | 56 builder.command().addAll(Arrays.asList(testVMArgs.split("\\s+"))); in javaProcessBuilder()
|
| /libcore/luni/src/main/java/java/sql/ |
| D | DriverManager.java | 80 String[] theDriverNames = theDriverList.split(":"); in loadInitialDrivers()
|
| /libcore/luni/src/main/java/java/lang/reflect/ |
| D | AccessibleObject.java | 287 String as[] = c.getName().split("\\["); in appendGenericType()
|
| /libcore/dalvik/src/main/java/dalvik/system/ |
| D | DexPathList.java | 163 String[] strings = path.split(Pattern.quote(File.pathSeparator)); in splitAndAdd()
|
| /libcore/luni/src/main/java/java/net/ |
| D | URLConnection.java | 279 for (String packageName : packageList.split("\\|")) { in getContentHandler()
|
| D | URL.java | 408 for (String packageName : packageList.split("\\|")) { in setupStreamHandler()
|
| D | HttpCookie.java | 157 return Arrays.asList(cookie.getPortlist().split(",")) in portMatches()
|
| /libcore/luni/src/main/java/libcore/net/http/ |
| D | ResponseHeaders.java | 159 for (String varyField : value.split(",")) { in ResponseHeaders()
|
| /libcore/luni/src/main/java/javax/crypto/ |
| D | Cipher.java | 336 String[] pieces = transformation.split("/"); in checkTransformation()
|