/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/lang/ |
D | UCharacterSurrogateTest.java | 12 import com.ibm.icu.lang.UCharacter; 36 UCharacter.UnicodeBlock b = UCharacter.UnicodeBlock in TestUnicodeBlockForName() 47 if (UCharacter.isValidCodePoint(-1)) in TestIsValidCodePoint() 49 if (!UCharacter.isValidCodePoint(0)) in TestIsValidCodePoint() 51 if (!UCharacter.isValidCodePoint(UCharacter.MAX_CODE_POINT)) in TestIsValidCodePoint() 53 if (UCharacter.isValidCodePoint(UCharacter.MAX_CODE_POINT + 1)) in TestIsValidCodePoint() 58 if (UCharacter.isSupplementaryCodePoint(-1)) in TestIsSupplementaryCodePoint() 60 if (UCharacter.isSupplementaryCodePoint(0)) in TestIsSupplementaryCodePoint() 62 if (UCharacter in TestIsSupplementaryCodePoint() 63 .isSupplementaryCodePoint(UCharacter.MIN_SUPPLEMENTARY_CODE_POINT - 1)) in TestIsSupplementaryCodePoint() [all …]
|
D | UCharacterTest.java | 22 import com.ibm.icu.lang.UCharacter; 82 if (!UCharacter.isLetter(i)) in TestLetterNumber() 86 if (UCharacter.isLetter(i)) in TestLetterNumber() 90 if (!UCharacter.isDigit(i)) in TestLetterNumber() 94 if (!UCharacter.isLetterOrDigit(i)) in TestLetterNumber() 98 if (!UCharacter.isLetterOrDigit(i)) in TestLetterNumber() 106 VersionInfo version = UCharacter.getUnicodeVersion(); in TestLetterNumber() 153 if (!UCharacter.isSpaceChar(spaces[i])) in TestSpaces() 160 if (UCharacter.isSpaceChar(nonspaces[i])) in TestSpaces() 167 if (!UCharacter.isWhitespace(whitespaces[i])) in TestSpaces() [all …]
|
D | UCharacterCaseTest.java | 20 import com.ibm.icu.lang.UCharacter; 66 if (UCharacter.isLetter(CHARACTER_LOWER_[i]) && in TestCharacter() 67 !UCharacter.isLowerCase(CHARACTER_LOWER_[i])) { in TestCharacter() 72 if (UCharacter.isLetter(CHARACTER_UPPER_[i]) && in TestCharacter() 73 !(UCharacter.isUpperCase(CHARACTER_UPPER_[i]) || in TestCharacter() 74 UCharacter.isTitleCase(CHARACTER_UPPER_[i]))) { in TestCharacter() 80 UCharacter.toLowerCase(CHARACTER_UPPER_[i]) || in TestCharacter() 82 UCharacter.toUpperCase(CHARACTER_LOWER_[i]) && in TestCharacter() 84 UCharacter.toTitleCase(CHARACTER_LOWER_[i]))) { in TestCharacter() 91 UCharacter.toLowerCase(CHARACTER_LOWER_[i])) { in TestCharacter() [all …]
|
D | UCharacterCompare.java | 15 import com.ibm.icu.lang.UCharacter; 50 if (UCharacter.isDefined(i) != Character.isDefined(i)) in main() 51 … trackDifference(p, i, "isDefined()", "" + UCharacter.isDefined(i), "" + Character.isDefined(i)); in main() 53 if (UCharacter.digit(i, 10) != Character.digit(i, 10)) in main() 54 … trackDifference(p, i, "digit()", "" + UCharacter.digit(i, 10), "" + Character.digit(i, 10)); in main() 55 if (UCharacter.getNumericValue(i) != Character.getNumericValue(i)) in main() 56 … trackDifference(p, i, "getNumericValue()", "" + UCharacter.getNumericValue(i), "" in main() 58 if (!compareType(UCharacter.getType(i), Character.getType(i))) in main() 59 … trackDifference(p, i, "getType()", "" + UCharacter.getType(i), "" + Character.getType(i)); in main() 60 if (UCharacter.isDigit(i) != Character.isDigit(i)) in main() [all …]
|
D | UPropertyAliasesTest.java | 14 import com.ibm.icu.lang.UCharacter; 35 name = UCharacter.getPropertyName(p, choice); in TestPropertyNames() 45 rev = UCharacter.getPropertyEnum(name); in TestPropertyNames() 54 String pname = UCharacter.getPropertyName(p, UProperty.NameChoice.LONG); in TestPropertyNames() 72 vname = UCharacter.getPropertyValueName(p, v, choice); in TestPropertyNames() 83 rev = UCharacter.getPropertyValueEnum(p, vname); in TestPropertyNames() 112 int i = UCharacter.getIntPropertyMinValue( in TestPropertyNames() 115 for (; i <= UCharacter.getIntPropertyMaxValue( in TestPropertyNames() 118 UCharacter.getPropertyValueName( in TestPropertyNames() 131 int p = UCharacter.getPropertyEnum("??"); in TestUnknownPropertyNames() [all …]
|
D | UCharacterThreadTest.java | 14 import com.ibm.icu.lang.UCharacter; 54 String correctName = UCharacter.getName(codePoint); in TestUCharactersGetName() 81 actualName = UCharacter.getName(codePoint); in run()
|
D | UTF16Test.java | 13 import com.ibm.icu.lang.UCharacter; 42 char array[] = new char[UCharacter.MAX_VALUE >> 2]; in TestAppend() 49 for (int i = 1; i < UCharacter.MAX_VALUE; i += 100) { in TestAppend() 889 if(UCharacter.getCodePoint('\ud800','\udc00')!=0x10000){ in TestValueOf() 974 String test4 = UCharacter.toString(testChar2); in TestIndexOf() 1178 UCharacter.toString(ch), index) != in TestIndexOf() 1190 UCharacter.toString(ch), index) in TestIndexOf() 1599 UCharacter.toCodePoint(UCharacter.MIN_HIGH_SURROGATE, UCharacter.MAX_LOW_SURROGATE), in TestNewString() 1600 UCharacter.toCodePoint(UCharacter.MAX_HIGH_SURROGATE, UCharacter.MIN_LOW_SURROGATE), in TestNewString() 1601 UCharacter.MAX_HIGH_SURROGATE, in TestNewString() [all …]
|
/external/icu/icu4j/main/tests/framework/src/com/ibm/icu/dev/util/ |
D | UnicodePropertySource.java | 16 import com.ibm.icu.lang.UCharacter; 165 propEnum = UCharacter.getPropertyEnum(propertyAlias); in setPropertyAlias() 172 int enumValue = UCharacter.getIntPropertyValue(codePoint, propEnum); in getPropertyValue() 173 return UCharacter.getPropertyValueName(propEnum,enumValue, (int)m_nameChoice); in getPropertyValue() 175 return Double.toString(UCharacter.getUnicodeNumericValue(codePoint)); in getPropertyValue() 178 case UProperty.AGE: return UCharacter.getAge(codePoint).toString(); in getPropertyValue() 179 … case UProperty.BIDI_MIRRORING_GLYPH: return UTF16.valueOf(UCharacter.getMirror(codePoint)); in getPropertyValue() 180 … case UProperty.CASE_FOLDING: return UCharacter.foldCase(UTF16.valueOf(codePoint),true); in getPropertyValue() 181 case UProperty.ISO_COMMENT: return UCharacter.getISOComment(codePoint); in getPropertyValue() 182 …case UProperty.LOWERCASE_MAPPING: return UCharacter.toLowerCase(Locale.ENGLISH,UTF16.valueOf(codeP… in getPropertyValue() [all …]
|
D | PrettyPrinter.java | 18 import com.ibm.icu.lang.UCharacter; 192 int type = UCharacter.getType(cp); in addSpaceAsNeededBefore() 193 if (type == UCharacter.NON_SPACING_MARK || type == UCharacter.ENCLOSING_MARK) { in addSpaceAsNeededBefore() 195 } else if (type == UCharacter.SURROGATE && cp >= UTF16.TRAIL_SURROGATE_MIN_VALUE) { in addSpaceAsNeededBefore()
|
/external/icu/icu4j/main/tests/translit/src/com/ibm/icu/dev/util/ |
D | ICUPropertyFactory.java | 23 import com.ibm.icu.lang.UCharacter; 60 return UTF16.valueOf(UCharacter.getMirror(codePoint)); in _getValue() 62 return UCharacter.foldCase(UTF16.valueOf(codePoint), true); in _getValue() 64 return UCharacter.getISOComment(codePoint); in _getValue() 66 return UCharacter.toLowerCase(Locale.ENGLISH, UTF16.valueOf(codePoint)); in _getValue() 68 return UCharacter.getName(codePoint); in _getValue() 70 return UTF16.valueOf(UCharacter.foldCase(codePoint, true)); in _getValue() 72 return UTF16.valueOf(UCharacter.toLowerCase(codePoint)); in _getValue() 74 return UTF16.valueOf(UCharacter.toTitleCase(codePoint)); in _getValue() 76 return UTF16.valueOf(UCharacter.toUpperCase(codePoint)); in _getValue() [all …]
|
D | Tokenizer.java | 15 import com.ibm.icu.lang.UCharacter; 168 if (UCharacter.getType(cp) == Character.DECIMAL_DIGIT_NUMBER) { in next() 169 number = UCharacter.getNumericValue(cp); in next() 172 if (UCharacter.getType(cp) != Character.DECIMAL_DIGIT_NUMBER) { in next() 177 number += UCharacter.getNumericValue(cp); in next() 311 if (!com.ibm.icu.lang.UCharacter.isUnicodeIdentifierPart(cp)) { in parseReference()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
D | UCharacterProperty.java | 15 import com.ibm.icu.lang.UCharacter; 16 import com.ibm.icu.lang.UCharacter.HangulSyllableType; 17 import com.ibm.icu.lang.UCharacter.NumericType; 161 private static final int GC_CN_MASK = getMask(UCharacter.UNASSIGNED); 162 private static final int GC_CC_MASK = getMask(UCharacter.CONTROL); 163 private static final int GC_CS_MASK = getMask(UCharacter.SURROGATE); 164 private static final int GC_ZS_MASK = getMask(UCharacter.SPACE_SEPARATOR); 165 private static final int GC_ZL_MASK = getMask(UCharacter.LINE_SEPARATOR); 166 private static final int GC_ZP_MASK = getMask(UCharacter.PARAGRAPH_SEPARATOR); 180 return (getMask(UCharacter.getType(c))& in isgraphPOSIX() [all …]
|
D | IntTrieBuilder.java | 15 import com.ibm.icu.lang.UCharacter; 171 if (m_isCompacted_ || ch > UCharacter.MAX_VALUE || ch < 0) { in getValue() 189 if (m_isCompacted_ || ch > UCharacter.MAX_VALUE || ch < 0) { in getValue() 214 if (m_isCompacted_ || ch > UCharacter.MAX_VALUE || ch < 0) { in setValue() 405 if (m_isCompacted_ || start < UCharacter.MIN_VALUE in setRange() 406 || start > UCharacter.MAX_VALUE || limit < UCharacter.MIN_VALUE in setRange() 407 || limit > (UCharacter.MAX_VALUE + 1) || start > limit) { in setRange()
|
D | TrieIterator.java | 12 import com.ibm.icu.lang.UCharacter; 120 if (m_nextCodepoint_ > UCharacter.MAX_VALUE) { in next() 123 if (m_nextCodepoint_ < UCharacter.SUPPLEMENTARY_MIN_VALUE && in next() 207 while (m_nextCodepoint_ < UCharacter.SUPPLEMENTARY_MIN_VALUE) { in calculateNextBMPElement() 341 setResult(element, m_currentCodepoint_, UCharacter.MAX_VALUE + 1, in calculateNextSupplementaryElement()
|
D | TrieBuilder.java | 12 import com.ibm.icu.lang.UCharacter; 84 if (m_isCompacted_ || ch > UCharacter.MAX_VALUE in isInZeroBlock() 85 || ch < UCharacter.MIN_VALUE) { in isInZeroBlock()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | BidiWriter.java | 13 import com.ibm.icu.lang.UCharacter; 20 static final int MASK_R_AL = (1 << UCharacter.RIGHT_TO_LEFT | 21 1 << UCharacter.RIGHT_TO_LEFT_ARABIC); 26 (1<<UCharacter.NON_SPACING_MARK | in IsCombining() 27 1<<UCharacter.COMBINING_SPACING_MARK | in IsCombining() 28 1<<UCharacter.ENCLOSING_MARK)) != 0); in IsCombining() 57 UTF16.append(dest, UCharacter.getMirror(c)); in doWriteForward() 85 UTF16.append(dest, UCharacter.getMirror(c)); in doWriteForward() 175 } while(srcLength > 0 && IsCombining(UCharacter.getType(c))); in writeReverse() 203 while(srcLength > 0 && IsCombining(UCharacter.getType(c))) { in writeReverse() [all …]
|
D | ScientificNumberFormatter.java | 14 import com.ibm.icu.lang.UCharacter; 279 int digit = UCharacter.digit(aChar); in copyAsSuperscript() 291 if (UCharacter.isHighSurrogate(c1)) { in char32AtAndAdvance() 294 if (UCharacter.isLowSurrogate(c2)) { in char32AtAndAdvance() 296 return UCharacter.toCodePoint(c1, c2); in char32AtAndAdvance()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/lang/ |
D | UCharacterNameIterator.java | 145 if (start < UCharacter.MIN_VALUE) { in setRange() 146 m_start_ = UCharacter.MIN_VALUE; in setRange() 152 if (limit > UCharacter.MAX_VALUE + 1) { in setRange() 153 m_limit_ = UCharacter.MAX_VALUE + 1; in setRange() 177 m_start_ = UCharacter.MIN_VALUE; in UCharacterNameIterator() 178 m_limit_ = UCharacter.MAX_VALUE + 1; in UCharacterNameIterator()
|
D | UScript.java | 1047 … int propNum = UCharacter.getPropertyValueEnumNoThrow(UProperty.SCRIPT, nameOrAbbrOrLocale); in getCode() 1058 … int propNum = UCharacter.getPropertyValueEnumNoThrow(UProperty.SCRIPT, nameOrAbbrOrLocale); in getCode() 1078 int propNum = UCharacter.getPropertyValueEnumNoThrow(UProperty.SCRIPT, nameOrAbbr); in getCodeFromName() 1090 if (codepoint >= UCharacter.MIN_VALUE & codepoint <= UCharacter.MAX_VALUE) { in getScript() 1206 return UCharacter.getPropertyValueName(UProperty.SCRIPT, in getName() 1222 return UCharacter.getPropertyValueName(UProperty.SCRIPT, in getShortName()
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/rbbi/ |
D | RBBITestMonkey.java | 17 import com.ibm.icu.lang.UCharacter; 1095 int cLBType = UCharacter.getIntPropertyValue(c, UProperty.LINE_BREAK); in LBNumberCheck() 1098 if (cLBType == UCharacter.LineBreak.PREFIX_NUMERIC || in LBNumberCheck() 1099 cLBType == UCharacter.LineBreak.POSTFIX_NUMERIC) { in LBNumberCheck() 1103 if (cLBType == UCharacter.LineBreak.OPEN_PUNCTUATION) { in LBNumberCheck() 1107 if (cLBType == UCharacter.LineBreak.HYPHEN) { in LBNumberCheck() 1111 if (cLBType == UCharacter.LineBreak.NUMERIC) { in LBNumberCheck() 1118 if (cLBType == UCharacter.LineBreak.COMBINING_MARK) { in LBNumberCheck() 1122 if (cLBType == UCharacter.LineBreak.OPEN_PUNCTUATION) { in LBNumberCheck() 1126 if (cLBType == UCharacter.LineBreak.HYPHEN) { in LBNumberCheck() [all …]
|
/external/icu/icu4j/main/tests/translit/src/com/ibm/icu/dev/test/translit/ |
D | RegexUtilitiesTest.java | 16 import com.ibm.icu.lang.UCharacter; 100 String propName = UCharacter.getPropertyName(propNum, NameChoice.LONG); 101 final int intPropertyMinValue = UCharacter.getIntPropertyMinValue(propNum); 102 int intPropertyMaxValue = UCharacter.getIntPropertyMaxValue(propNum); 108 … String valueName = UCharacter.getPropertyValueName(propNum, valueNum, NameChoice.LONG); 110 … valueName = UCharacter.getPropertyValueName(propNum, valueNum, NameChoice.SHORT);
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/normalizer/ |
D | BasicTest.java | 18 import com.ibm.icu.lang.UCharacter; 658 UCharacter.getIntPropertyMaxValue(UProperty.NFD_QUICK_CHECK)!=1 || // YES in TestQuickCheckPerCP() 659 UCharacter.getIntPropertyMaxValue(UProperty.NFKD_QUICK_CHECK)!=1 || in TestQuickCheckPerCP() 660 UCharacter.getIntPropertyMaxValue(UProperty.NFC_QUICK_CHECK)!=2 || // MAYBE in TestQuickCheckPerCP() 661 UCharacter.getIntPropertyMaxValue(UProperty.NFKC_QUICK_CHECK)!=2 || in TestQuickCheckPerCP() 662 …UCharacter.getIntPropertyMaxValue(UProperty.LEAD_CANONICAL_COMBINING_CLASS)!=UCharacter.getIntProp… in TestQuickCheckPerCP() 663 …UCharacter.getIntPropertyMaxValue(UProperty.TRAIL_CANONICAL_COMBINING_CLASS)!=UCharacter.getIntPro… in TestQuickCheckPerCP() 676 qc1=UCharacter.getIntPropertyValue(c, UProperty.NFC_QUICK_CHECK); in TestQuickCheckPerCP() 682 qc1=UCharacter.getIntPropertyValue(c, UProperty.NFD_QUICK_CHECK); in TestQuickCheckPerCP() 688 qc1=UCharacter.getIntPropertyValue(c, UProperty.NFKC_QUICK_CHECK); in TestQuickCheckPerCP() [all …]
|
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/text/ |
D | AlphabeticIndex.java | 16 import com.ibm.icu.lang.UCharacter; 560 initialLabels.add(UCharacter.toUpperCase(locale, item)); in addIndexExemplars() 599 if (!UCharacter.isHighSurrogate(last) || !UCharacter.isLowSurrogate(ch)) { in separated() 1213 private static final int GC_LU_MASK = 1 << UCharacter.UPPERCASE_LETTER; 1214 private static final int GC_LL_MASK = 1 << UCharacter.LOWERCASE_LETTER; 1215 private static final int GC_LT_MASK = 1 << UCharacter.TITLECASE_LETTER; 1216 private static final int GC_LM_MASK = 1 << UCharacter.MODIFIER_LETTER; 1217 private static final int GC_LO_MASK = 1 << UCharacter.OTHER_LETTER; 1220 private static final int GC_CN_MASK = 1 << UCharacter.GENERAL_OTHER_TYPES; 1241 int gcMask = 1 << UCharacter.getType(boundary.codePointAt(1)); in getFirstCharactersInScripts()
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/bidi/ |
D | TestCharFromDirProp.java | 11 import com.ibm.icu.lang.UCharacter; 29 int dir = UCharacter.getDirection(c); in testCharFromDirProp()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | CaseInsensitiveString.java | 9 import com.ibm.icu.lang.UCharacter; 27 return UCharacter.foldCase(foldee, true); in foldCase()
|