Searched refs:low (Results 1 - 13 of 13) 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.java164 // A high surrogate not followed by a low surrogate is an error replaced with '?'.
531 char high = '\uD83D', low = '\uDE02';
532 String surrogateCP = new String(new char[]{high, low, low});
533 assertTrue(Arrays.equals(new int[]{high, low, low}, surrogateCP.chars().toArray()));
545 char high = '\uD83D', low = '\uDE02';
546 String surrogateCP = new String(new char[]{high, low, low, '0'});
547 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.java1325 * 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 DCollections.java262 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 DInteger.java809 static final int low = -128; field in class:Integer.IntegerCache
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)];
1285 * low-order 32 bits are equal to the bits of the integer
1486 * high-order, side reenter on the right, or low-order.)
1510 * low-order, side reenter on the left, or high-order.)
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
518 * Unicode low-surrogate code unit</a>
520 * A low-surrogate is also known as a <i>trailing-surrogate</i>.
529 * Unicode low-surrogate code unit</a>
531 * A low-surrogate is also known as a <i>trailing-surrogate</i>.
1773 * This block represents codepoint values in the low surrogate
4759 * Unicode low-surrogate code unit</a>
4789 * a {@linkplain #isLowSurrogate(char) low-surrogate code unit} or
4811 * isHighSurrogate(high) && isLowSurrogate(low)
4821 isSurrogatePair(char high, char low) argument
4857 toCodePoint(char high, char low) argument
[all...]
/libcore/ojluni/src/main/java/sun/misc/
H A DFloatingDecimal.java369 // 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 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.java2006 int low = (b & 0x0f);
2008 buf.append(hexChars[low]);

Completed in 326 milliseconds