Home
last modified time | relevance | path

Searched refs:Character (Results 1 – 25 of 113) sorted by relevance

12345

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DCharacter_UnicodeBlockTest.java24 assertEquals(Character.UnicodeBlock.BASIC_LATIN, Character.UnicodeBlock.of((char) 0x0)); in test_ofC()
25 assertEquals(Character.UnicodeBlock.BASIC_LATIN, Character.UnicodeBlock.of((char) 0x7f)); in test_ofC()
26 … assertEquals(Character.UnicodeBlock.LATIN_1_SUPPLEMENT, Character.UnicodeBlock.of((char) 0x80)); in test_ofC()
27 … assertEquals(Character.UnicodeBlock.LATIN_1_SUPPLEMENT, Character.UnicodeBlock.of((char) 0xff)); in test_ofC()
28 … assertEquals(Character.UnicodeBlock.LATIN_EXTENDED_A, Character.UnicodeBlock.of((char) 0x100)); in test_ofC()
29 … assertEquals(Character.UnicodeBlock.LATIN_EXTENDED_A, Character.UnicodeBlock.of((char) 0x17f)); in test_ofC()
30 … assertEquals(Character.UnicodeBlock.LATIN_EXTENDED_B, Character.UnicodeBlock.of((char) 0x180)); in test_ofC()
31 … assertEquals(Character.UnicodeBlock.LATIN_EXTENDED_B, Character.UnicodeBlock.of((char) 0x24f)); in test_ofC()
32 … assertEquals(Character.UnicodeBlock.IPA_EXTENSIONS, Character.UnicodeBlock.of((char) 0x250)); in test_ofC()
33 … assertEquals(Character.UnicodeBlock.IPA_EXTENSIONS, Character.UnicodeBlock.of((char) 0x2af)); in test_ofC()
[all …]
DCharacterTest.java26 assertFalse(Character.isValidCodePoint(-1)); in test_isValidCodePointI()
27 assertTrue(Character.isValidCodePoint(0)); in test_isValidCodePointI()
28 assertTrue(Character.isValidCodePoint(1)); in test_isValidCodePointI()
29 assertFalse(Character.isValidCodePoint(Integer.MAX_VALUE)); in test_isValidCodePointI()
32 assertTrue(Character.isValidCodePoint(c)); in test_isValidCodePointI()
35 assertFalse(Character.isValidCodePoint(0x10FFFF + 1)); in test_isValidCodePointI()
39 assertFalse(Character.isSupplementaryCodePoint(-1)); in test_isSupplementaryCodePointI()
42 assertFalse(Character.isSupplementaryCodePoint(c)); in test_isSupplementaryCodePointI()
46 assertTrue(Character.isSupplementaryCodePoint(c)); in test_isSupplementaryCodePointI()
49 assertFalse(Character.isSupplementaryCodePoint(0x10FFFF + 1)); in test_isSupplementaryCodePointI()
[all …]
DCharacterImplTest.java26 Character e = new Character(c); in test_valueOfC()
27 Character a = Character.valueOf(c); in test_valueOfC()
31 assertSame(Character.valueOf(c), Character.valueOf(c)); in test_valueOfC()
34 for (int c = 128; c <= Character.MAX_VALUE; c++) { in test_valueOfC()
35 assertEquals(new Character((char) c), Character.valueOf((char) c)); in test_valueOfC()
DCharacter_SubsetTest.java31 new Character.Subset(null) { in test_Ctor()
44 Character.Subset subset = new Character.Subset(name) { in test_toString()
/libcore/luni/src/test/java/libcore/java/lang/
DCharacterTest.java27 Character e = new Character(c); in test_valueOfC()
28 Character a = Character.valueOf(c); in test_valueOfC()
30 assertSame(Character.valueOf(c), Character.valueOf(c)); in test_valueOfC()
32 for (int c = '\u0080'; c <= Character.MAX_VALUE; ++c) { in test_valueOfC()
33 assertEquals(new Character((char) c), Character.valueOf((char) c)); in test_valueOfC()
38 assertTrue(Character.isBmpCodePoint(0x0000)); in test_isBmpCodePoint()
39 assertTrue(Character.isBmpCodePoint(0x0666)); in test_isBmpCodePoint()
40 assertTrue(Character.isBmpCodePoint(0xffff)); in test_isBmpCodePoint()
41 assertFalse(Character.isBmpCodePoint(0x10000)); in test_isBmpCodePoint()
42 assertFalse(Character.isBmpCodePoint(-1)); in test_isBmpCodePoint()
[all …]
DOldCharacterTest.java25 assertEquals(1, Character.codePointCount("\uD800\uDC00".toCharArray(), in test_codePointCountLjava_lang_CharArrayII()
27 assertEquals(3, Character.codePointCount("a\uD800\uDC00b".toCharArray(), in test_codePointCountLjava_lang_CharArrayII()
29 assertEquals(4, Character.codePointCount("a\uD800\uDC00b\uD800".toCharArray(), in test_codePointCountLjava_lang_CharArrayII()
31 assertEquals(4, Character.codePointCount("ab\uD800\uDC00b\uD800".toCharArray(), in test_codePointCountLjava_lang_CharArrayII()
35 Character.codePointCount((char[]) null, 0, 1); in test_codePointCountLjava_lang_CharArrayII()
41 Character.codePointCount("abc".toCharArray(), -1, 1); in test_codePointCountLjava_lang_CharArrayII()
47 Character.codePointCount("abc".toCharArray(), 0, 4); in test_codePointCountLjava_lang_CharArrayII()
53 Character.codePointCount("abc".toCharArray(), 1, 3); in test_codePointCountLjava_lang_CharArrayII()
64 Character.DIRECTIONALITY_LEFT_TO_RIGHT, in test_getDirectionality()
67 Character.DIRECTIONALITY_LEFT_TO_RIGHT, in test_getDirectionality()
[all …]
DOldCharacterSubsetTest.java25 Character.Subset subset1 = new Character.Subset("name") { }; in test_equals()
27 assertFalse(subset1.equals(new Character.Subset("name") {})); in test_equals()
28 assertFalse(subset1.equals(new Character.Subset("name1") {})); in test_equals()
33 Character.Subset subset1 = new Character.Subset("name") {}; in test_hashCode()
34 Character.Subset subset2 = new Character.Subset("name") {}; in test_hashCode()
35 Character.Subset subset3 = new Character.Subset("name1") {}; in test_hashCode()
DIntegerTest.java206 for(int radix = Character.MIN_RADIX; radix <= Character.MAX_RADIX; ++radix) {
225 Integer.parseUnsignedInt("0", Character.MAX_RADIX + 1);
229 Integer.parseUnsignedInt("0", Character.MIN_RADIX - 1);
254 for(int radix = Character.MIN_RADIX; radix <= Character.MAX_RADIX; ++radix) {
/libcore/ojluni/annotations/hiddenapi/java/lang/
DCharacter.java32 public final class Character class
33 implements java.io.Serializable, java.lang.Comparable<java.lang.Character> {
35 public Character(char value) { in Character() method in Character
39 public static java.lang.Character valueOf(char c) { in valueOf()
437 public int compareTo(java.lang.Character anotherCharacter) { in compareTo()
589 public static final java.lang.Class<java.lang.Character> TYPE;
618 static final java.lang.Character[] cache;
621 cache = new java.lang.Character[0];
648 public static final class UnicodeBlock extends java.lang.Character.Subset {
670 public static java.lang.Character.UnicodeBlock of(char c) { in of()
[all …]
/libcore/ojluni/annotations/sdk/nullability/java/lang/
DCharacter.annotated.java33 public final class Character implements java.io.Serializable, java.lang.Comparable<java.lang.Charac… class
35 public Character(char value) { throw new RuntimeException("Stub!"); } in Character() method in Character
37 @libcore.util.NonNull public static java.lang.Character valueOf(char c) { throw new RuntimeExceptio… in valueOf()
201 public int compareTo(@libcore.util.NonNull java.lang.Character anotherCharacter) { throw new Runtim… in compareTo()
335 public static final java.lang.Class<java.lang.Character> TYPE;
354 public static final class UnicodeBlock extends java.lang.Character.Subset {
358 @libcore.util.Nullable public static java.lang.Character.UnicodeBlock of(char c) { throw new Runtim… in of()
360 @libcore.util.Nullable public static java.lang.Character.UnicodeBlock of(int codePoint) { throw new… in of()
362 @libcore.util.NonNull public static java.lang.Character.UnicodeBlock forName(@libcore.util.NonNull … in forName()
364 public static final java.lang.Character.UnicodeBlock AEGEAN_NUMBERS;
[all …]
/libcore/benchmarks/src/benchmarks/regression/
DCharacterBenchmark.java80 Character.digit(chars[ch], 10); in timeDigit()
86 Character.digit((int) chars[ch], 10); in timeDigit()
96 Character.getNumericValue(chars[ch]); in timeGetNumericValue()
102 Character.getNumericValue((int) chars[ch]); in timeGetNumericValue()
112 Character.isDigit(chars[ch]); in timeIsDigit()
118 Character.isDigit((int) chars[ch]); in timeIsDigit()
128 Character.isIdentifierIgnorable(chars[ch]); in timeIsIdentifierIgnorable()
134 Character.isIdentifierIgnorable((int) chars[ch]); in timeIsIdentifierIgnorable()
144 Character.isJavaIdentifierPart(chars[ch]); in timeIsJavaIdentifierPart()
150 Character.isJavaIdentifierPart((int) chars[ch]); in timeIsJavaIdentifierPart()
[all …]
/libcore/ojluni/src/main/native/
DCharacter.cpp163 FAST_NATIVE_METHOD(Character, digitImpl, "(II)I"),
164 FAST_NATIVE_METHOD(Character, getDirectionalityImpl, "(I)B"),
165 NATIVE_METHOD(Character, getNameImpl, "(I)Ljava/lang/String;"),
166 FAST_NATIVE_METHOD(Character, getNumericValueImpl, "(I)I"),
167 FAST_NATIVE_METHOD(Character, getTypeImpl, "(I)I"),
168 FAST_NATIVE_METHOD(Character, isAlphabeticImpl, "(I)Z"),
169 FAST_NATIVE_METHOD(Character, isDefinedImpl, "(I)Z"),
170 FAST_NATIVE_METHOD(Character, isDigitImpl, "(I)Z"),
171 FAST_NATIVE_METHOD(Character, isIdentifierIgnorableImpl, "(I)Z"),
172 FAST_NATIVE_METHOD(Character, isIdeographicImpl, "(I)Z"),
[all …]
/libcore/ojluni/src/main/java/sun/security/util/
DDerInputBuffer.java318 year = 1000 * Character.digit((char)buf[pos++], 10); in getTime()
319 year += 100 * Character.digit((char)buf[pos++], 10); in getTime()
320 year += 10 * Character.digit((char)buf[pos++], 10); in getTime()
321 year += Character.digit((char)buf[pos++], 10); in getTime()
325 year = 10 * Character.digit((char)buf[pos++], 10); in getTime()
326 year += Character.digit((char)buf[pos++], 10); in getTime()
334 month = 10 * Character.digit((char)buf[pos++], 10); in getTime()
335 month += Character.digit((char)buf[pos++], 10); in getTime()
337 day = 10 * Character.digit((char)buf[pos++], 10); in getTime()
338 day += Character.digit((char)buf[pos++], 10); in getTime()
[all …]
/libcore/ojluni/src/main/java/sun/misc/
DVersion.java276 Character.isDigit(cs.charAt(0)) && cs.charAt(1) == '.' && in initVersions()
277 Character.isDigit(cs.charAt(2)) && cs.charAt(3) == '.' && in initVersions()
278 Character.isDigit(cs.charAt(4))) { in initVersions()
279 jvm_major_version = Character.digit(cs.charAt(0), 10); in initVersions()
280 jvm_minor_version = Character.digit(cs.charAt(2), 10); in initVersions()
281 jvm_micro_version = Character.digit(cs.charAt(4), 10); in initVersions()
285 if (Character.isDigit(cs.charAt(1)) && in initVersions()
286 Character.isDigit(cs.charAt(2)) && in initVersions()
287 Character.isDigit(cs.charAt(3))) in initVersions()
290 } else if (Character.isDigit(cs.charAt(1)) && in initVersions()
[all …]
/libcore/ojluni/src/main/java/java/sql/
DDate.java162 buf[0] = Character.forDigit(year/1000,10); in toString()
163 buf[1] = Character.forDigit((year/100)%10,10); in toString()
164 buf[2] = Character.forDigit((year/10)%10,10); in toString()
165 buf[3] = Character.forDigit(year%10,10); in toString()
166 buf[5] = Character.forDigit(month/10,10); in toString()
167 buf[6] = Character.forDigit(month%10,10); in toString()
168 buf[8] = Character.forDigit(day/10,10); in toString()
169 buf[9] = Character.forDigit(day%10,10); in toString()
/libcore/libart/src/main/java/java/lang/
DCaseMapper.java57 if (ch == LATIN_CAPITAL_I_WITH_DOT || Character.isHighSurrogate(ch)) { in toLowerCase()
63 newCh = Character.toLowerCase(ch); in toLowerCase()
88 …if (!(Character.isLowerCase(previous) || Character.isUpperCase(previous) || Character.isTitleCase(… in isFinalSigma()
95 … if (Character.isLowerCase(next) || Character.isUpperCase(next) || Character.isTitleCase(next)) { in isFinalSigma()
159 if (Character.isHighSurrogate(ch)) { in toUpperCase()
169 char upch = Character.toUpperCase(ch); in toUpperCase()
/libcore/ojluni/src/main/java/java/lang/
DCharSequence.java188 if (!Character.isHighSurrogate(c1) || i >= length) { in codePoints()
192 if (Character.isLowSurrogate(c2)) { in codePoints()
194 block.accept(Character.toCodePoint(c1, c2)); in codePoints()
216 if (Character.isHighSurrogate(c1) && cur < length) { in codePoints()
218 if (Character.isLowSurrogate(c2)) { in codePoints()
220 return Character.toCodePoint(c1, c2); in codePoints()
DString.java648 return Character.codePointAt(this, index); in codePointAt()
679 return Character.codePointBefore(this, index); in codePointBefore()
708 return Character.codePointCount(this, beginIndex, endIndex); in codePointCount()
736 return Character.offsetByCodePoints(this, index, codePointOffset); in offsetByCodePoints()
1202 c1 = Character.toUpperCase(c1); in compare()
1203 c2 = Character.toUpperCase(c2); in compare()
1205 c1 = Character.toLowerCase(c1); in compare()
1206 c2 = Character.toLowerCase(c2); in compare()
1366 char u1 = Character.toUpperCase(c1); in regionMatches()
1367 char u2 = Character.toUpperCase(c2); in regionMatches()
[all …]
DAbstractStringBuilder.java266 return Character.codePointAtImpl(value, index, count); in codePointAt()
295 return Character.codePointBeforeImpl(value, index, 0); in codePointBefore()
322 return Character.codePointCountImpl(value, beginIndex, endIndex-beginIndex); in codePointCount()
348 return Character.offsetByCodePointsImpl(value, 0, count, in offsetByCodePoints()
791 if (Character.isBmpCodePoint(codePoint)) { in appendCodePoint()
795 } else if (Character.isValidCodePoint(codePoint)) { in appendCodePoint()
797 Character.toSurrogates(codePoint, value, count); in appendCodePoint()
1421 if (Character.isSurrogate(cj) || in reverse()
1422 Character.isSurrogate(ck)) { in reverse()
1436 if (Character.isLowSurrogate(c2)) { in reverseAllValidSurrogatePairs()
[all …]
/libcore/ojluni/src/main/java/java/util/
DStringTokenizer.java151 for (int i = 0; i < delimiters.length(); i += Character.charCount(c)) { in setMaxDelimCodePoint()
153 if (c >= Character.MIN_HIGH_SURROGATE && c <= Character.MAX_LOW_SURROGATE) { in setMaxDelimCodePoint()
165 for (int i = 0, j = 0; i < count; i++, j += Character.charCount(c)) { in setMaxDelimCodePoint()
260 position += Character.charCount(c); in skipDelimiters()
282 position += Character.charCount(c); in scanToken()
293 position += Character.charCount(c); in scanToken()
/libcore/ojluni/src/main/java/java/time/format/
DDateTimeParseContext.java224 if (ch1 != ch2 && Character.toUpperCase(ch1) != Character.toUpperCase(ch2) && in subSequenceEquals()
225 Character.toLowerCase(ch1) != Character.toLowerCase(ch2)) { in subSequenceEquals()
257 Character.toUpperCase(c1) == Character.toUpperCase(c2) || in charEqualsIgnoreCase()
258 Character.toLowerCase(c1) == Character.toLowerCase(c2); in charEqualsIgnoreCase()
/libcore/ojluni/src/main/java/sun/util/locale/
DLocaleExtensions.java49 private final Map<Character, Extension> extensionMap;
62 private LocaleExtensions(String id, Character key, Extension value) { in LocaleExtensions()
84 SortedMap<Character, Extension> map = new TreeMap<>(); in LocaleExtensions()
136 public Set<Character> getKeys() { in getKeys()
143 public Extension getExtension(Character key) { in getExtension()
147 public String getExtensionValue(Character key) { in getExtensionValue()
194 private static String toID(SortedMap<Character, Extension> map) { in toID() argument
197 for (Entry<Character, Extension> entry : map.entrySet()) { in toID()
/libcore/ojluni/src/main/java/sun/security/x509/
DAVA.java283 int cVal = hexDigits.indexOf(Character.toUpperCase((char)c)); in parseHexString()
535 if (hexDigits.indexOf(Character.toUpperCase((char)c1)) >= 0) { in getEmbeddedHexPair()
539 if (hexDigits.indexOf(Character.toUpperCase((char)c2)) >= 0) { in getEmbeddedHexPair()
540 int hi = Character.digit((char)c1, 16); in getEmbeddedHexPair()
541 int lo = Character.digit((char)c2, 16); in getEmbeddedHexPair()
764 typeAndValue.append(Character.forDigit(0xF & (b >>> 4), 16)); in toRFC2253String()
765 typeAndValue.append(Character.forDigit(0xF & b, 16)); in toRFC2253String()
832 valueBytes = Character.toString(c).getBytes("UTF8"); in toRFC2253String()
839 char hexChar = Character.forDigit in toRFC2253String()
841 sbuffer.append(Character.toUpperCase(hexChar)); in toRFC2253String()
[all …]
/libcore/luni/src/test/java/libcore/java/nio/charset/
DCharset_TestGenerator.java109 return Character.isLetterOrDigit(code); in isAccepted()
129 return Character.isLetterOrDigit(code) || Character.isWhitespace(code); in isAccepted()
168 return Character.isLetterOrDigit(code); in isAccepted()
/libcore/ojluni/src/main/java/java/net/
DURLEncoder.java272 char ch = Character.forDigit((ba[j] >> 4) & 0xF, 16); in encode()
275 if (Character.isLetter(ch)) { in encode()
279 ch = Character.forDigit(ba[j] & 0xF, 16); in encode()
280 if (Character.isLetter(ch)) { in encode()

12345