Home
last modified time | relevance | path

Searched refs:scanner (Results 1 – 9 of 9) sorted by relevance

/libcore/luni/src/test/java/libcore/java/util/
DScannerTest.java31 Scanner scanner = new Scanner("123 45"); in testReset() local
33 scanner.useDelimiter("123"); in testReset()
34 scanner.useLocale(locale); in testReset()
35 scanner.useRadix(8); in testReset()
36 assertEquals("123", scanner.delimiter().pattern()); in testReset()
37 assertEquals(locale, scanner.locale()); in testReset()
38 assertEquals(8, scanner.radix()); in testReset()
40 scanner.reset(); in testReset()
41 assertEquals("\\p{javaWhitespace}+", scanner.delimiter().pattern()); in testReset()
42 assertEquals(Locale.getDefault(Locale.Category.FORMAT), scanner.locale()); in testReset()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DScannerParseLargeFileBenchmarkTest.java33 Scanner scanner = new Scanner(reader).useDelimiter(delimiter); in testParseLargeFile() local
35 while (scanner.hasNext()) { in testParseLargeFile()
36 scanner.next(); in testParseLargeFile()
38 scanner.close(); in testParseLargeFile()
DControlTest.java417 Scanner scanner = new Scanner(file); in changeProperties() local
418 assertEquals(newValue, scanner.nextLine()); in changeProperties()
419 scanner.close(); in changeProperties()
DPropertiesTest.java713 Scanner scanner = new Scanner(out.toString()); in test_storeLjava_io_WriterLjava_lang_String() local
714 assertTrue(scanner.nextLine().startsWith("#A Header")); in test_storeLjava_io_WriterLjava_lang_String()
715 assertTrue(scanner.nextLine().startsWith("#")); in test_storeLjava_io_WriterLjava_lang_String()
DScannerTest.java5635 final Scanner scanner = new Scanner(pis); in test_hasNextLine_sequence() local
5640 while (scanner.hasNextLine()) { in test_hasNextLine_sequence()
5641 String line = scanner.nextLine(); in test_hasNextLine_sequence()
5663 assertFalse(scanner.hasNextLine()); in test_hasNextLine_sequence()
/libcore/ojluni/src/test/java/util/Scanner/
DScanTest.java527 try (Scanner scanner = new Scanner(text)) { in boundaryDelimTest() argument
528 scanner.useDelimiter("-;(-)?"); in boundaryDelimTest()
529 while (scanner.hasNext()) { in boundaryDelimTest()
530 scanner.next(); in boundaryDelimTest()
550 Scanner scanner = new Scanner("777 dog"); in cacheTest() local
551 scanner.hasNextInt(); in cacheTest()
552 scanner.findInLine("777"); in cacheTest()
554 scanner.nextInt(); in cacheTest()
561 scanner = new Scanner("777 dog"); in cacheTest()
562 scanner.hasNextInt(); in cacheTest()
[all …]
Dinput.txt27 * returned <code>true</code>. If the match is successful, the scanner
33 * @throws IllegalStateException if this scanner is closed
/libcore/ojluni/src/main/java/sun/security/util/
DPropertyExpander.java74 scanner: in expand()
89 break scanner; in expand() local
102 break scanner; in expand() local
138 break scanner; in expand() local
/libcore/benchmarks/src/benchmarks/regression/
DScannerBenchmark.java107 Scanner scanner = new Scanner(new ByteArrayInputStream(data)); in readAll() local
108 while (scanner.hasNext()) { in readAll()
109 scanner.nextLine(); in readAll()