Home
last modified time | relevance | path

Searched refs:low (Results 1 – 14 of 14) sorted by relevance

/libcore/luni/src/test/java/libcore/java/lang/
DStringBufferTest.java34 char high = '\uD83D', low = '\uDE02'; in testChars() local
35 StringBuffer surrogateCP = new StringBuffer().append(new char[]{high, low, low}); in testChars()
36 assertTrue(Arrays.equals(new int[]{high, low, low}, surrogateCP.chars().toArray())); in testChars()
48 char high = '\uD83D', low = '\uDE02'; in testCodePoints() local
49 StringBuffer surrogateCP = new StringBuffer().append(new char[]{high, low, low, '0'}); in testCodePoints()
50 assertEquals(Character.toCodePoint(high, low), surrogateCP.codePoints().toArray()[0]); in testCodePoints()
51 assertEquals((int) low, surrogateCP.codePoints().toArray()[1]); // Unmatched surrogate. in testCodePoints()
DStringBuilderTest.java144 char high = '\uD83D', low = '\uDE02'; in testChars() local
145 StringBuilder surrogateCP = new StringBuilder().append(new char[]{high, low, low}); in testChars()
146 assertTrue(Arrays.equals(new int[]{high, low, low}, surrogateCP.chars().toArray())); in testChars()
158 char high = '\uD83D', low = '\uDE02'; in testCodePoints() local
159 StringBuilder surrogateCP = new StringBuilder().append(new char[]{high, low, low, '0'}); in testCodePoints()
160 assertEquals(Character.toCodePoint(high, low), surrogateCP.codePoints().toArray()[0]); in testCodePoints()
161 assertEquals((int) low, surrogateCP.codePoints().toArray()[1]); // Unmatched surrogate. in testCodePoints()
DStringTest.java531 char high = '\uD83D', low = '\uDE02'; in testChars() local
532 String surrogateCP = new String(new char[]{high, low, low}); in testChars()
533 assertTrue(Arrays.equals(new int[]{high, low, low}, surrogateCP.chars().toArray())); in testChars()
545 char high = '\uD83D', low = '\uDE02'; in testCodePoints() local
546 String surrogateCP = new String(new char[]{high, low, low, '0'}); in testCodePoints()
547 assertEquals(Character.toCodePoint(high, low), surrogateCP.codePoints().toArray()[0]); in testCodePoints()
548 assertEquals((int) low, surrogateCP.codePoints().toArray()[1]); // Unmatched surrogate. in testCodePoints()
/libcore/ojluni/src/main/java/java/io/
DStreamTokenizer.java274 public void wordChars(int low, int hi) { in wordChars() argument
275 if (low < 0) in wordChars()
276 low = 0; in wordChars()
279 while (low <= hi) in wordChars()
280 ctype[low++] |= CT_ALPHA; in wordChars()
295 public void whitespaceChars(int low, int hi) { in whitespaceChars() argument
296 if (low < 0) in whitespaceChars()
297 low = 0; in whitespaceChars()
300 while (low <= hi) in whitespaceChars()
301 ctype[low++] = CT_WHITESPACE; in whitespaceChars()
[all …]
/libcore/luni/src/test/java/libcore/java/nio/
DCharBufferTest.java49 char high = '\uD83D', low = '\uDE02'; in testCodePoints() local
50 String surrogateCP = new String(new char[]{high, low, low, '0'}); in testCodePoints()
53 assertEquals(Character.toCodePoint(high, low), cb.codePoints().toArray()[0]); in testCodePoints()
54 assertEquals((int) low, cb.codePoints().toArray()[1]); // Unmatched surrogate. in testCodePoints()
/libcore/ojluni/src/main/java/java/util/
DArrays.java1333 int low, in mergeSort() argument
1336 int length = high - low; in mergeSort()
1340 for (int i=low; i<high; i++) in mergeSort()
1341 for (int j=i; j>low && in mergeSort()
1348 int destLow = low; in mergeSort()
1350 low += off; in mergeSort()
1352 int mid = (low + high) >>> 1; in mergeSort()
1353 mergeSort(dest, src, low, mid, -off); in mergeSort()
1359 System.arraycopy(src, low, dest, destLow, length); in mergeSort()
1364 for(int i = destLow, p = low, q = mid; i < destHigh; i++) { in mergeSort()
[all …]
DCollections.java262 int low = 0; in indexedBinarySearch() local
265 while (low <= high) { in indexedBinarySearch()
266 int mid = (low + high) >>> 1; in indexedBinarySearch()
271 low = mid + 1; in indexedBinarySearch()
277 return -(low + 1); // key not found in indexedBinarySearch()
283 int low = 0; in iteratorBinarySearch() local
287 while (low <= high) { in iteratorBinarySearch()
288 int mid = (low + high) >>> 1; in iteratorBinarySearch()
293 low = mid + 1; in iteratorBinarySearch()
299 return -(low + 1); // key not found in iteratorBinarySearch()
[all …]
/libcore/expectations/
Dicebox.txt86 description: "low-impact XML bugs:",
92 description: "low-impact XML bugs:",
98 description: "low-impact XML bugs:",
104 description: "low-impact XML bugs:",
110 description: "low-impact XML bugs:",
116 description: "low-impact XML bugs:",
122 description: "low-impact XML bugs:",
133 description: "a low-impact bug, also present in Crockford's implementation of org.json",
/libcore/ojluni/src/main/java/sun/misc/
DFloatingDecimal.java571 boolean low, high; in dtoa()
611 low = (b < m ); in dtoa()
627 high = low = false; in dtoa()
629 while( ! low && ! high ){ in dtoa()
635 low = (b < m ); in dtoa()
643 low = true; in dtoa()
665 low = (b < m ); in dtoa()
681 high = low = false; in dtoa()
683 while( ! low && ! high ){ in dtoa()
689 low = (b < m ); in dtoa()
[all …]
/libcore/ojluni/src/main/java/java/lang/
DInteger.java809 static final int low = -128;
823 h = Math.min(i, Integer.MAX_VALUE - (-low) -1);
830 cache = new Integer[(high - low) + 1];
831 int j = low;
858 if (i >= IntegerCache.low && i <= IntegerCache.high)
859 return IntegerCache.cache[i + (-IntegerCache.low)];
DCharacter.java4821 public static boolean isSurrogatePair(char high, char low) { in isSurrogatePair() argument
4822 return isHighSurrogate(high) && isLowSurrogate(low); in isSurrogatePair()
4857 public static int toCodePoint(char high, char low) { in toCodePoint() argument
4862 return ((high << 10) + low) + (MIN_SUPPLEMENTARY_CODE_POINT in toCodePoint()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/regex/
DPattern2Test.java852 if (UBlocks[i].low > 0) { in testUnicodeBlocks()
853 m = p.matcher(Character.toString((char) (UBlocks[i].low - 1))); in testUnicodeBlocks()
856 for (j = UBlocks[i].low; j <= UBlocks[i].high; j++) { in testUnicodeBlocks()
867 if (UBlocks[i].low > 0) { in testUnicodeBlocks()
868 m = p.matcher(Character.toString((char) (UBlocks[i].low - 1))); in testUnicodeBlocks()
871 for (j = UBlocks[i].low; j < UBlocks[i].high; j++) { in testUnicodeBlocks()
1080 public UBInfo(int low, int high, String name) { in UBInfo() argument
1082 this.low = low; in UBInfo()
1088 public int low, high; field in Pattern2Test.UBInfo
/libcore/xml/src/main/java/org/kxml2/io/
DKXmlSerializer.java603 private void writeSurrogate(char high, char low) throws IOException { in writeSurrogate() argument
604 if (!Character.isLowSurrogate(low)) { in writeSurrogate()
606 " U+" + Integer.toHexString((int) low) + ")"); in writeSurrogate()
611 int codePoint = Character.toCodePoint(high, low); in writeSurrogate()
/libcore/ojluni/src/main/java/sun/security/x509/
DX509CertImpl.java2006 int low = (b & 0x0f); in byte2hex() local
2008 buf.append(hexChars[low]); in byte2hex()