/libcore/luni/src/test/java/libcore/java/lang/ |
H A D | StringBufferTest.java | 34 char high = '\uD83D', low = '\uDE02'; 35 StringBuffer surrogateCP = new StringBuffer().append(new char[]{high, low, low}); 36 assertTrue(Arrays.equals(new int[]{high, low, low}, surrogateCP.chars().toArray())); 48 char high = '\uD83D', low = '\uDE02'; 49 StringBuffer surrogateCP = new StringBuffer().append(new char[]{high, low, low, '0'}); 50 assertEquals(Character.toCodePoint(high, low), surrogateCP.codePoints().toArray()[0]); 51 assertEquals((int) low, surrogateC [all...] |
H A D | StringBuilderTest.java | 144 char high = '\uD83D', low = '\uDE02'; 145 StringBuilder surrogateCP = new StringBuilder().append(new char[]{high, low, low}); 146 assertTrue(Arrays.equals(new int[]{high, low, low}, surrogateCP.chars().toArray())); 158 char high = '\uD83D', low = '\uDE02'; 159 StringBuilder surrogateCP = new StringBuilder().append(new char[]{high, low, low, '0'}); 160 assertEquals(Character.toCodePoint(high, low), surrogateCP.codePoints().toArray()[0]); 161 assertEquals((int) low, surrogateC [all...] |
H A D | StringTest.java | 172 // A high surrogate not followed by a low surrogate is an error replaced with '?'. 720 char high = '\uD83D', low = '\uDE02'; 721 String surrogateCP = new String(new char[]{high, low, low}); 722 assertTrue(Arrays.equals(new int[]{high, low, low}, surrogateCP.chars().toArray())); 734 char high = '\uD83D', low = '\uDE02'; 735 String surrogateCP = new String(new char[]{high, low, low, '0'}); 736 assertEquals(Character.toCodePoint(high, low), surrogateC [all...] |
/libcore/luni/src/test/java/libcore/java/nio/ |
H A D | CharBufferTest.java | 49 char high = '\uD83D', low = '\uDE02'; 50 String surrogateCP = new String(new char[]{high, low, low, '0'}); 53 assertEquals(Character.toCodePoint(high, low), cb.codePoints().toArray()[0]); 54 assertEquals((int) low, cb.codePoints().toArray()[1]); // Unmatched surrogate.
|
/libcore/ojluni/src/main/java/java/io/ |
H A D | StreamTokenizer.java | 267 * <code>low <= <i>c</i> <= high</code> 271 * @param low the low end of the range. 274 public void wordChars(int low, int hi) { argument 275 if (low < 0) 276 low = 0; 279 while (low <= hi) 280 ctype[low++] |= CT_ALPHA; 285 * <code>low <= <i>c</i> <= high</code> 292 * @param low th 295 whitespaceChars(int low, int hi) argument 315 ordinaryChars(int low, int hi) argument [all...] |
/libcore/ojluni/src/main/java/java/util/ |
H A D | Arrays.java | 1325 * low is the index in dest to start sorting 1327 * off is the offset to generate corresponding low, high in src 1333 int low, 1336 int length = high - low; 1340 for (int i=low; i<high; i++) 1341 for (int j=i; j>low && 1348 int destLow = low; 1350 low += off; 1352 int mid = (low + high) >>> 1; 1353 mergeSort(dest, src, low, mi 1331 mergeSort(Object[] src, Object[] dest, int low, int high, int off) argument [all...] |
H A D | Collections.java | 262 int low = 0; 265 while (low <= high) { 266 int mid = (low + high) >>> 1; 271 low = mid + 1; 277 return -(low + 1); // key not found 283 int low = 0; 287 while (low <= high) { 288 int mid = (low + high) >>> 1; 293 low = mid + 1; 299 return -(low [all...] |
/libcore/ojluni/src/main/java/java/lang/ |
H A D | Integer.java | 816 static final int low = -128; field in class:Integer.IntegerCache 830 h = Math.min(i, Integer.MAX_VALUE - (-low) -1); 837 cache = new Integer[(high - low) + 1]; 838 int j = low; 865 if (i >= IntegerCache.low && i <= IntegerCache.high) 866 return IntegerCache.cache[i + (-IntegerCache.low)]; 1292 * low-order 32 bits are equal to the bits of the integer 1493 * high-order, side reenter on the right, or low-order.) 1517 * low-order, side reenter on the left, or high-order.)
|
H A D | Character.java | 82 * <em>low-surrogates</em> range (\uDC00-\uDFFF). 100 * this specific value if followed by any low-surrogate value in a string 519 * Unicode low-surrogate code unit</a> 521 * A low-surrogate is also known as a <i>trailing-surrogate</i>. 530 * Unicode low-surrogate code unit</a> 532 * A low-surrogate is also known as a <i>trailing-surrogate</i>. 1774 * This block represents codepoint values in the low surrogate 4760 * Unicode low-surrogate code unit</a> 4790 * a {@linkplain #isLowSurrogate(char) low-surrogate code unit} or 4812 * isHighSurrogate(high) && isLowSurrogate(low) 4822 isSurrogatePair(char high, char low) argument 4858 toCodePoint(char high, char low) argument [all...] |
/libcore/ojluni/src/main/java/sun/misc/ |
H A D | FloatingDecimal.java | 369 // Discard non-significant low-order bits, while rounding, 376 // round up based on the low-order bits we're discarding 571 boolean low, high; 611 low = (b < m ); 627 high = low = false; 629 while( ! low && ! high ){ 635 low = (b < m ); 643 low = true; 665 low = (b < m ); 681 high = low [all...] |
/libcore/xml/src/main/java/org/kxml2/io/ |
H A D | KXmlSerializer.java | 603 private void writeSurrogate(char high, char low) throws IOException { argument 604 if (!Character.isLowSurrogate(low)) { 606 " U+" + Integer.toHexString((int) low) + ")"); 611 int codePoint = Character.toCodePoint(high, low);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/regex/ |
H A D | Pattern2Test.java | 829 * if (UBlocks[i].low > 0) { m = 830 * p.matcher(Character.toString((char)(UBlocks[i].low-1))); 831 * assertFalse(m.matches()); } for (j=UBlocks[i].low; j <= 840 * if (UBlocks[i].low > 0) { m = 841 * p.matcher(Character.toString((char)(UBlocks[i].low-1))); 842 * assertTrue(m.matches()); } for (j=UBlocks[i].low; j < 852 if (UBlocks[i].low > 0) { 853 m = p.matcher(Character.toString((char) (UBlocks[i].low - 1))); 856 for (j = UBlocks[i].low; j <= UBlocks[i].high; j++) { 867 if (UBlocks[i].low > 1080 UBInfo(int low, int high, String name) argument 1088 public int low, high; field in class:Pattern2Test.UBInfo [all...] |
/libcore/ojluni/src/main/java/sun/security/x509/ |
H A D | X509CertImpl.java | 2011 int low = (b & 0x0f); 2013 buf.append(hexChars[low]);
|