/libcore/ojluni/src/main/java/java/util/ |
D | StringJoiner.java | 67 private final String delimiter; field in StringJoiner 99 public StringJoiner(CharSequence delimiter) { in StringJoiner() argument 100 this(delimiter, "", ""); in StringJoiner() 118 public StringJoiner(CharSequence delimiter, in StringJoiner() argument 122 Objects.requireNonNull(delimiter, "The delimiter must not be null"); in StringJoiner() 126 this.delimiter = delimiter.toString(); in StringJoiner() 176 final String delimiter = this.delimiter; in toString() local 182 k += getChars(delimiter, chars, k); in toString() 205 len += delimiter.length(); in add() 245 k += getChars(delimiter, chars, k); in compactElts()
|
D | HexFormat.java | 191 private final String delimiter; field in HexFormat 205 private HexFormat(String delimiter, String prefix, String suffix, byte[] digits) { in HexFormat() argument 206 this.delimiter = Objects.requireNonNull(delimiter, "delimiter"); in HexFormat() 237 public static HexFormat ofDelimiter(String delimiter) { in ofDelimiter() argument 238 return new HexFormat(delimiter, "", "", LOWERCASE_DIGITS); in ofDelimiter() 246 public HexFormat withDelimiter(String delimiter) { in withDelimiter() argument 247 return new HexFormat(delimiter, this.prefix, this.suffix, this.digits); in withDelimiter() 257 return new HexFormat(this.delimiter, prefix, this.suffix, this.digits); in withPrefix() 267 return new HexFormat(this.delimiter, this.prefix, suffix, this.digits); in withSuffix() 277 return new HexFormat(this.delimiter, this.prefix, this.suffix, UPPERCASE_DIGITS); in withUpperCase() [all …]
|
D | Scanner.java | 1214 public Pattern delimiter() { in delimiter() method in Scanner
|
/libcore/ojluni/src/test/java/util/HexFormat/ |
D | HexFormatTest.java | 335 static void testFormatter(String delimiter, String prefix, String suffix, in testFormatter() argument 343 delimiter.length() + suffix.length()) - delimiter.length(); in testFormatter() 350 int offset = i * (valueChars + delimiter.length()); in testFormatter() 360 if (i < expected.length - 1 && !delimiter.isEmpty()) { in testFormatter() 363 offset + valueChars + delimiter.length()), delimiter); in testFormatter() 383 static void testParseHexStringRange(String delimiter, String prefix, String suffix, in testParseHexStringRange() argument 391 int stride = prefix.length() + 2 + suffix.length() + delimiter.length(); in testParseHexStringRange() 393 s.substring(low * stride, high * stride - delimiter.length())); in testParseHexStringRange() 395 high * stride - delimiter.length()); in testParseHexStringRange() 404 static void testParseHexEmptyString(String delimiter, String prefix, String suffix, in testParseHexEmptyString() argument [all …]
|
/libcore/ojluni/src/test/java/util/Scanner/ |
D | ScannerStreamTest.java | 79 Scanner makeScanner(String input, String delimiter) { in makeScanner() argument 81 if (delimiter != null) { in makeScanner() 82 sc.useDelimiter(delimiter); in makeScanner() 92 public void tokensTest(String description, String input, String delimiter) { in tokensTest() argument 94 Scanner sc = makeScanner(input, delimiter); in tokensTest() 100 Supplier<Stream<String>> ss = () -> makeScanner(input, delimiter).tokens(); in tokensTest()
|
D | ScanTest.java | 669 sc.delimiter(); in closeTest() 727 Pattern test = sc.delimiter(); in delimiterTest() 731 test = sc.delimiter(); in delimiterTest() 735 test = sc.delimiter(); in delimiterTest() 1493 Pattern delimiter = sc.delimiter(); in resetTest() local 1501 !sc.delimiter().pattern().equals(a.pattern())) { in resetTest() 1507 !sc.delimiter().pattern().equals(delimiter.pattern())) { in resetTest()
|
/libcore/xml/src/main/java/com/android/org/kxml2/io/ |
D | KXmlParser.java | 465 private String readUntil(char[] delimiter, boolean returnText) in readUntil() argument 477 if (position + delimiter.length > limit) { in readUntil() 484 if (!fillBuffer(delimiter.length)) { in readUntil() 494 for (int i = 0; i < delimiter.length; i++) { in readUntil() 495 if (buffer[position + i] != delimiter[i]) { in readUntil() 505 position += delimiter.length; in readUntil() 643 int delimiter = peekCharacter(); in readExternalId() local 644 if (delimiter != '"' && delimiter != '\'') { in readExternalId() 665 char[] delimiter; in readQuotedId() local 667 delimiter = DOUBLE_QUOTE; in readQuotedId() [all …]
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | ScannerTest.java | 36 assertEquals("123", scanner.delimiter().pattern()); in testReset() 41 assertEquals("\\p{javaWhitespace}+", scanner.delimiter().pattern()); in testReset()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | ScannerParseLargeFileBenchmarkTest.java | 32 String delimiter = "\r?\n"; in testParseLargeFile() local 33 Scanner scanner = new Scanner(reader).useDelimiter(delimiter); in testParseLargeFile()
|
D | ScannerTest.java | 531 Pattern pattern = s.delimiter(); in test_delimiter() 541 assertEquals("\\w+", s.delimiter().toString()); in test_useDelimiter_LPattern() 545 assertNull(s.delimiter()); in test_useDelimiter_LPattern() 561 assertEquals("\\w+", s.delimiter().toString()); in test_useDelimiter_String()
|
/libcore/ojluni/src/main/java/sun/net/www/protocol/ftp/ |
D | FtpURLConnection.java | 195 int delimiter = userInfo.indexOf(':'); in FtpURLConnection() local 196 if (delimiter == -1) { in FtpURLConnection() 200 user = ParseUtil.decode(userInfo.substring(0, delimiter++)); in FtpURLConnection() 201 password = ParseUtil.decode(userInfo.substring(delimiter)); in FtpURLConnection()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | String.java | 3082 public static String join(CharSequence delimiter, CharSequence... elements) { in join() argument 3083 Objects.requireNonNull(delimiter); in join() 3086 StringJoiner joiner = new StringJoiner(delimiter); in join() 3127 public static String join(CharSequence delimiter, in join() argument 3129 Objects.requireNonNull(delimiter); in join() 3131 StringJoiner joiner = new StringJoiner(delimiter); in join()
|
/libcore/ojluni/annotations/hiddenapi/java/lang/ |
D | String.java | 356 java.lang.CharSequence delimiter, java.lang.CharSequence... elements) { in join() argument 361 java.lang.CharSequence delimiter, in join() argument
|
/libcore/ojluni/annotations/sdk/nullability/java/lang/ |
D | String.annotated.java | 162 …atic java.lang.String join(@libcore.util.NonNull java.lang.CharSequence delimiter, java.lang.@libc… in join() argument 164 …atic java.lang.String join(@libcore.util.NonNull java.lang.CharSequence delimiter, @libcore.util.N… in join() argument
|
/libcore/ojluni/src/main/java/java/util/stream/ |
D | Collectors.java | 382 public static Collector<CharSequence, ?, String> joining(CharSequence delimiter) { 383 return joining(delimiter, "", ""); 399 public static Collector<CharSequence, ?, String> joining(CharSequence delimiter, 403 () -> new StringJoiner(delimiter, prefix, suffix),
|
/libcore/ojluni/src/test/java/util/Base64/ |
D | plain.txt | 151 to ensure that the boundary delimiter does not appear anywhere in the
|
/libcore/api/ |
D | current.txt | 13661 method public String delimiter(); 14379 method public java.util.regex.Pattern delimiter();
|