Home
last modified time | relevance | path

Searched refs:useDelimiter (Results 1 – 3 of 3) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DScannerParseLargeFileBenchmarkTest.java33 Scanner scanner = new Scanner(reader).useDelimiter(delimiter); in testParseLargeFile()
DScannerTest.java540 s.useDelimiter(Pattern.compile("\\w+")); in test_useDelimiter_LPattern()
544 s.useDelimiter((Pattern) null); in test_useDelimiter_LPattern()
554 s.useDelimiter((String) null); in test_useDelimiter_String()
560 s.useDelimiter("\\w+"); in test_useDelimiter_String()
618 s = new Scanner("aab*b*").useDelimiter("\\*"); in test_remove()
749 s = new Scanner("1**2").useDelimiter("\\*"); in test_next()
754 s = new Scanner(" \t 1 \t 2").useDelimiter("\\s*"); in test_next()
763 s = new Scanner("a").useDelimiter("a?"); in test_next()
770 s = new Scanner("aa").useDelimiter("a?"); in test_next()
779 s = new Scanner("word( )test( )").useDelimiter("\\( \\)"); in test_next()
[all …]
/libcore/ojluni/src/main/java/java/util/
DScanner.java1147 public Scanner useDelimiter(Pattern pattern) { in useDelimiter() method in Scanner
1166 public Scanner useDelimiter(String pattern) { in useDelimiter() method in Scanner