Home
last modified time | relevance | path

Searched refs:valueChars (Results 1 – 2 of 2) sorted by relevance

/libcore/ojluni/src/test/java/util/HexFormat/
DHexFormatTest.java353 int valueChars = prefix.length() + 2 + suffix.length(); in testFormatter() local
354 int offset = i * (valueChars + delimiter.length()); in testFormatter()
355 String value = res.substring(offset, offset + valueChars); in testFormatter()
366 assertEquals(res.substring(offset + valueChars, in testFormatter()
367 offset + valueChars + delimiter.length()), delimiter); in testFormatter()
633 long valueChars = prefix.length() + 2 + suffix.length(); in testOOME() local
634 long stride = valueChars + delimiter.length(); in testOOME()
638 if (remainder > valueChars) { in testOOME()
640 remainder -= valueChars; in testOOME()
/libcore/ojluni/src/main/java/java/util/
DHexFormat.java562 long valueChars = prefix.length() + 2L + suffix.length(); in parseHex() local
563 long stride = valueChars + delimiter.length(); in parseHex()
564 if ((string.length() - valueChars) % stride != 0) in parseHex()
571 final int len = (int)((string.length() - valueChars) / stride + 1L); in parseHex()