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

/libcore/luni/src/test/java/libcore/java/lang/
H A DStringBufferTest.java34 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 DStringBuilderTest.java144 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 DStringTest.java163 // A high surrogate not followed by a low surrogate is an error replaced with '?'.
530 char high = '\uD83D', low = '\uDE02';
531 String surrogateCP = new String(new char[]{high, low, low});
532 assertTrue(Arrays.equals(new int[]{high, low, low}, surrogateCP.chars().toArray()));
544 char high = '\uD83D', low = '\uDE02';
545 String surrogateCP = new String(new char[]{high, low, low, '0'});
546 assertEquals(Character.toCodePoint(high, low), surrogateC
[all...]
/libcore/luni/src/test/java/libcore/java/nio/
H A DCharBufferTest.java49 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 DStreamTokenizer.java267 * <code>low&nbsp;&lt;=&nbsp;<i>c</i>&nbsp;&lt;=&nbsp;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&nbsp;&lt;=&nbsp;<i>c</i>&nbsp;&lt;=&nbsp;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 DArrays.java1346 * low is the index in dest to start sorting
1348 * off is the offset to generate corresponding low, high in src
1353 int low,
1356 int length = high - low;
1360 for (int i=low; i<high; i++)
1361 for (int j=i; j>low &&
1368 int destLow = low;
1370 low += off;
1372 int mid = (low + high) >>> 1;
1373 mergeSort(dest, src, low, mi
1351 mergeSort(Object[] src, Object[] dest, int low, int high, int off) argument
1546 mergeSort(Object[] src, Object[] dest, int low, int high, int off, Comparator c) argument
[all...]
H A DCollections.java293 int low = 0;
296 while (low <= high) {
297 int mid = (low + high) >>> 1;
302 low = mid + 1;
308 return -(low + 1); // key not found
314 int low = 0;
318 while (low <= high) {
319 int mid = (low + high) >>> 1;
324 low = mid + 1;
330 return -(low
[all...]
/libcore/ojluni/src/main/java/sun/misc/
H A DFormattedFloatingDecimal.java99 * count number of bits from high-order 1 bit to low-order 1 bit,
316 // Discard non-significant low-order bits, while rounding,
327 // round up based on the low-order bits we're discarding
757 boolean low, high;
794 low = (b < m );
810 high = low = false;
812 while( ! low && ! high ){
818 low = (b < m );
826 low = true;
847 low
[all...]
/libcore/ojluni/src/main/java/java/lang/
H A DInteger.java626 static final int low = -128; field in class:Integer.IntegerCache
639 h = Math.min(i, Integer.MAX_VALUE - (-low) -1);
643 cache = new Integer[(high - low) + 1];
644 int j = low;
669 if (i >= IntegerCache.low && i <= IntegerCache.high)
670 return IntegerCache.cache[i + (-IntegerCache.low)];
1206 * high-order, side reenter on the right, or low-order.)
1228 * low-order, side reenter on the left, or high-order.)
H A DFloatingDecimal.java82 * count number of bits from high-order 1 bit to low-order 1 bit,
299 // Discard non-significant low-order bits, while rounding,
310 // round up based on the low-order bits we're discarding
690 boolean low, high;
727 low = (b < m );
743 high = low = false;
745 while( ! low && ! high ){
751 low = (b < m );
759 low = true;
780 low
[all...]
H A DCharacter.java81 * <em>low-surrogates</em> range (&#92;uDC00-&#92;uDFFF).
99 * this specific value if followed by any low-surrogate value in a string
522 * Unicode low-surrogate code unit</a>
524 * A low-surrogate is also known as a <i>trailing-surrogate</i>.
533 * Unicode low-surrogate code unit</a>
535 * A low-surrogate is also known as a <i>trailing-surrogate</i>.
1777 * This block represents codepoint values in the low surrogate
4578 * Unicode low-surrogate code unit</a>
4608 * a {@linkplain #isLowSurrogate(char) low-surrogate code unit} or
4630 * isHighSurrogate(high) && isLowSurrogate(low)
4640 isSurrogatePair(char high, char low) argument
4676 toCodePoint(char high, char low) argument
[all...]
/libcore/xml/src/main/java/org/kxml2/io/
H A DKXmlSerializer.java603 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 DPattern2Test.java829 * 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 DX509CertImpl.java2009 int low = (b & 0x0f);
2011 buf.append(hexChars[low]);

Completed in 487 milliseconds