Home
last modified time | relevance | path

Searched refs:UProperty (Results 1 – 25 of 99) sorted by relevance

1234

/external/icu/android_icu4j/src/main/tests/android/icu/dev/util/
DICUPropertyFactory.java25 import android.icu.lang.UProperty;
47 …if (propEnum == UProperty.DEFAULT_IGNORABLE_CODE_POINT || propEnum == UProperty.BIDI_CLASS || prop… in ICUProperty()
58 case UProperty.AGE: in _getValue()
60 case UProperty.BIDI_MIRRORING_GLYPH: in _getValue()
62 case UProperty.CASE_FOLDING: in _getValue()
64 case UProperty.ISO_COMMENT: in _getValue()
66 case UProperty.LOWERCASE_MAPPING: in _getValue()
68 case UProperty.NAME: in _getValue()
70 case UProperty.SIMPLE_CASE_FOLDING: in _getValue()
72 case UProperty.SIMPLE_LOWERCASE_MAPPING: in _getValue()
[all …]
DUnicodePropertySource.java18 import android.icu.lang.UProperty;
33 protected int m_nameChoice = UProperty.NameChoice.LONG;
172 if (propEnum < UProperty.INT_LIMIT) { in getPropertyValue()
175 } else if (propEnum < UProperty.DOUBLE_LIMIT) { in getPropertyValue()
179 case UProperty.AGE: return UCharacter.getAge(codePoint).toString(); in getPropertyValue()
180 … case UProperty.BIDI_MIRRORING_GLYPH: return UTF16.valueOf(UCharacter.getMirror(codePoint)); in getPropertyValue()
181 … case UProperty.CASE_FOLDING: return UCharacter.foldCase(UTF16.valueOf(codePoint),true); in getPropertyValue()
182 case UProperty.ISO_COMMENT: return UCharacter.getISOComment(codePoint); in getPropertyValue()
183 …case UProperty.LOWERCASE_MAPPING: return UCharacter.toLowerCase(Locale.ENGLISH,UTF16.valueOf(codeP… in getPropertyValue()
184 case UProperty.NAME: return UCharacter.getName(codePoint); in getPropertyValue()
[all …]
/external/icu/icu4j/main/tests/translit/src/com/ibm/icu/dev/util/
DICUPropertyFactory.java24 import com.ibm.icu.lang.UProperty;
46 …if (propEnum == UProperty.DEFAULT_IGNORABLE_CODE_POINT || propEnum == UProperty.BIDI_CLASS || prop… in ICUProperty()
57 case UProperty.AGE: in _getValue()
59 case UProperty.BIDI_MIRRORING_GLYPH: in _getValue()
61 case UProperty.CASE_FOLDING: in _getValue()
63 case UProperty.ISO_COMMENT: in _getValue()
65 case UProperty.LOWERCASE_MAPPING: in _getValue()
67 case UProperty.NAME: in _getValue()
69 case UProperty.SIMPLE_CASE_FOLDING: in _getValue()
71 case UProperty.SIMPLE_LOWERCASE_MAPPING: in _getValue()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/lang/
DUCharacterTest.java27 import android.icu.lang.UProperty;
226 boolean z = (UCharacter.getIntPropertyValue(c, UProperty.GENERAL_CATEGORY_MASK) & in TestSpaces()
241 boolean z = (UCharacter.getIntPropertyValue(c, UProperty.GENERAL_CATEGORY_MASK) & in TestSpaces()
543 …if(UCharacter.getIntPropertyValue(start, UProperty.BIDI_PAIRED_BRACKET_TYPE)==UCharacter.BidiPaire… in TestMirror()
730 UProperty.GENERAL_CATEGORY_MASK) != (1 << type)) { in TestUnicodeData()
789 … dt=UCharacter.getPropertyValueEnum(UProperty.DECOMPOSITION_TYPE, d.substring(1, end)); in TestUnicodeData()
818 int i=UCharacter.getIntPropertyValue(ch, UProperty.DECOMPOSITION_TYPE); in TestUnicodeData()
837 … && !UCharacter.hasBinaryProperty(ch, UProperty.FULL_COMPOSITION_EXCLUSION)) { in TestUnicodeData()
930 || UCharacter.getIntPropertyValue(0x41, UProperty.BLOCK) in TestUnicodeData()
942 UProperty.GENERAL_CATEGORY_MASK) in TestUnicodeData()
[all …]
DUPropertyAliasesTest.java16 import android.icu.lang.UProperty;
58 String pname = UCharacter.getPropertyName(p, UProperty.NameChoice.LONG); in TestPropertyNames()
60 if (p == UProperty.CANONICAL_COMBINING_CLASS) { in TestPropertyNames()
62 } else if (p == UProperty.GENERAL_CATEGORY_MASK) { in TestPropertyNames()
66 } else if (p == UProperty.BLOCK) { in TestPropertyNames()
102 if (p>=UProperty.STRING_LIMIT) { in TestPropertyNames()
104 } else if (p>=UProperty.DOUBLE_LIMIT) { in TestPropertyNames()
105 p = UProperty.STRING_START - 1; in TestPropertyNames()
106 } else if (p>=UProperty.MASK_LIMIT) { in TestPropertyNames()
107 p = UProperty.DOUBLE_START - 1; in TestPropertyNames()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/lang/
DUCharacterTest.java26 import com.ibm.icu.lang.UProperty;
222 boolean z = (UCharacter.getIntPropertyValue(c, UProperty.GENERAL_CATEGORY_MASK) & in TestSpaces()
237 boolean z = (UCharacter.getIntPropertyValue(c, UProperty.GENERAL_CATEGORY_MASK) & in TestSpaces()
539 …if(UCharacter.getIntPropertyValue(start, UProperty.BIDI_PAIRED_BRACKET_TYPE)==UCharacter.BidiPaire… in TestMirror()
726 UProperty.GENERAL_CATEGORY_MASK) != (1 << type)) { in TestUnicodeData()
785 … dt=UCharacter.getPropertyValueEnum(UProperty.DECOMPOSITION_TYPE, d.substring(1, end)); in TestUnicodeData()
814 int i=UCharacter.getIntPropertyValue(ch, UProperty.DECOMPOSITION_TYPE); in TestUnicodeData()
833 … && !UCharacter.hasBinaryProperty(ch, UProperty.FULL_COMPOSITION_EXCLUSION)) { in TestUnicodeData()
926 || UCharacter.getIntPropertyValue(0x41, UProperty.BLOCK) in TestUnicodeData()
938 UProperty.GENERAL_CATEGORY_MASK) in TestUnicodeData()
[all …]
DUPropertyAliasesTest.java15 import com.ibm.icu.lang.UProperty;
54 String pname = UCharacter.getPropertyName(p, UProperty.NameChoice.LONG); in TestPropertyNames()
56 if (p == UProperty.CANONICAL_COMBINING_CLASS) { in TestPropertyNames()
58 } else if (p == UProperty.GENERAL_CATEGORY_MASK) { in TestPropertyNames()
62 } else if (p == UProperty.BLOCK) { in TestPropertyNames()
98 if (p>=UProperty.STRING_LIMIT) { in TestPropertyNames()
100 } else if (p>=UProperty.DOUBLE_LIMIT) { in TestPropertyNames()
101 p = UProperty.STRING_START - 1; in TestPropertyNames()
102 } else if (p>=UProperty.MASK_LIMIT) { in TestPropertyNames()
103 p = UProperty.DOUBLE_START - 1; in TestPropertyNames()
[all …]
/external/icu/icu4c/source/common/
Duprops.cpp45 typedef UBool BinaryPropertyContains(const BinaryProperty &prop, UChar32 c, UProperty which);
53 static UBool defaultContains(const BinaryProperty &prop, UChar32 c, UProperty /*which*/) { in defaultContains() argument
58 static UBool caseBinaryPropertyContains(const BinaryProperty &/*prop*/, UChar32 c, UProperty which)… in caseBinaryPropertyContains()
62 static UBool isBidiControl(const BinaryProperty &/*prop*/, UChar32 c, UProperty /*which*/) { in isBidiControl() argument
66 static UBool isMirrored(const BinaryProperty &/*prop*/, UChar32 c, UProperty /*which*/) { in isMirrored() argument
70 static UBool isJoinControl(const BinaryProperty &/*prop*/, UChar32 c, UProperty /*which*/) { in isJoinControl() argument
75 static UBool hasFullCompositionExclusion(const BinaryProperty &, UChar32, UProperty) { in hasFullCompositionExclusion() argument
79 static UBool hasFullCompositionExclusion(const BinaryProperty &/*prop*/, UChar32 c, UProperty /*whi… in hasFullCompositionExclusion() argument
89 static UBool isNormInert(const BinaryProperty &, UChar32, UProperty) { in isNormInert() argument
93 static UBool isNormInert(const BinaryProperty &/*prop*/, UChar32 c, UProperty which) { in isNormInert()
[all …]
Dpropname.cpp289 u_getPropertyName(UProperty property, in u_getPropertyName()
295 U_CAPI UProperty U_EXPORT2
298 return (UProperty)PropNameData::getPropertyEnum(alias); in u_getPropertyEnum()
302 u_getPropertyValueName(UProperty property, in u_getPropertyValueName()
310 u_getPropertyValueEnum(UProperty property, in u_getPropertyValueEnum()
/external/icu/icu4j/main/tests/framework/src/com/ibm/icu/dev/util/
DUnicodePropertySource.java17 import com.ibm.icu.lang.UProperty;
32 protected int m_nameChoice = UProperty.NameChoice.LONG;
171 if (propEnum < UProperty.INT_LIMIT) { in getPropertyValue()
174 } else if (propEnum < UProperty.DOUBLE_LIMIT) { 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()
183 case UProperty.NAME: return UCharacter.getName(codePoint); in getPropertyValue()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DUCharacterProperty.java19 import com.ibm.icu.lang.UProperty;
225 return Norm2AllModes.getN2WithImpl(which-UProperty.NFD_INERT).isInert(c); in contains()
274 new CaseBinaryProperty(UProperty.LOWERCASE),
279 new CaseBinaryProperty(UProperty.SOFT_DOTTED),
282 new CaseBinaryProperty(UProperty.UPPERCASE),
286 new CaseBinaryProperty(UProperty.CASE_SENSITIVE),
289 new NormInertBinaryProperty(SRC_NFC, UProperty.NFD_INERT),
290 new NormInertBinaryProperty(SRC_NFKC, UProperty.NFKD_INERT),
291 new NormInertBinaryProperty(SRC_NFC, UProperty.NFC_INERT),
292 new NormInertBinaryProperty(SRC_NFKC, UProperty.NFKC_INERT),
[all …]
DUBiDiProps.java27 import com.ibm.icu.lang.UProperty;
154 case UProperty.BIDI_CLASS: in getMaxValue()
156 case UProperty.JOINING_GROUP: in getMaxValue()
158 case UProperty.JOINING_TYPE: in getMaxValue()
160 case UProperty.BIDI_PAIRED_BRACKET_TYPE: in getMaxValue()
DUCaseProps.java27 import com.ibm.icu.lang.UProperty;
1254 case UProperty.LOWERCASE: in hasBinaryProperty()
1256 case UProperty.UPPERCASE: in hasBinaryProperty()
1258 case UProperty.SOFT_DOTTED: in hasBinaryProperty()
1260 case UProperty.CASE_SENSITIVE: in hasBinaryProperty()
1262 case UProperty.CASED: in hasBinaryProperty()
1264 case UProperty.CASE_IGNORABLE: in hasBinaryProperty()
1278 case UProperty.CHANGES_WHEN_LOWERCASED: in hasBinaryProperty()
1281 case UProperty.CHANGES_WHEN_UPPERCASED: in hasBinaryProperty()
1284 case UProperty.CHANGES_WHEN_TITLECASED: in hasBinaryProperty()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DUCharacterProperty.java20 import android.icu.lang.UProperty;
226 return Norm2AllModes.getN2WithImpl(which-UProperty.NFD_INERT).isInert(c); in contains()
275 new CaseBinaryProperty(UProperty.LOWERCASE),
280 new CaseBinaryProperty(UProperty.SOFT_DOTTED),
283 new CaseBinaryProperty(UProperty.UPPERCASE),
287 new CaseBinaryProperty(UProperty.CASE_SENSITIVE),
290 new NormInertBinaryProperty(SRC_NFC, UProperty.NFD_INERT),
291 new NormInertBinaryProperty(SRC_NFKC, UProperty.NFKD_INERT),
292 new NormInertBinaryProperty(SRC_NFC, UProperty.NFC_INERT),
293 new NormInertBinaryProperty(SRC_NFKC, UProperty.NFKC_INERT),
[all …]
DUCaseProps.java28 import android.icu.lang.UProperty;
1258 case UProperty.LOWERCASE: in hasBinaryProperty()
1260 case UProperty.UPPERCASE: in hasBinaryProperty()
1262 case UProperty.SOFT_DOTTED: in hasBinaryProperty()
1264 case UProperty.CASE_SENSITIVE: in hasBinaryProperty()
1266 case UProperty.CASED: in hasBinaryProperty()
1268 case UProperty.CASE_IGNORABLE: in hasBinaryProperty()
1282 case UProperty.CHANGES_WHEN_LOWERCASED: in hasBinaryProperty()
1285 case UProperty.CHANGES_WHEN_UPPERCASED: in hasBinaryProperty()
1288 case UProperty.CHANGES_WHEN_TITLECASED: in hasBinaryProperty()
[all …]
DUBiDiProps.java28 import android.icu.lang.UProperty;
158 case UProperty.BIDI_CLASS: in getMaxValue()
160 case UProperty.JOINING_GROUP: in getMaxValue()
162 case UProperty.JOINING_TYPE: in getMaxValue()
164 case UProperty.BIDI_PAIRED_BRACKET_TYPE: in getMaxValue()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/lang/
DUScript.java1047 … int propNum = UCharacter.getPropertyValueEnumNoThrow(UProperty.SCRIPT, nameOrAbbrOrLocale); in getCode()
1048 if (propNum != UProperty.UNDEFINED) { in getCode()
1058 … int propNum = UCharacter.getPropertyValueEnumNoThrow(UProperty.SCRIPT, nameOrAbbrOrLocale); in getCode()
1059 if (propNum != UProperty.UNDEFINED) { in getCode()
1077 int propNum = UCharacter.getPropertyValueEnumNoThrow(UProperty.SCRIPT, nameOrAbbr); in getCodeFromName()
1078 return propNum == UProperty.UNDEFINED ? INVALID_CODE : propNum; in getCodeFromName()
1205 return UCharacter.getPropertyValueName(UProperty.SCRIPT, in getName()
1207 UProperty.NameChoice.LONG); in getName()
1221 return UCharacter.getPropertyValueName(UProperty.SCRIPT, in getShortName()
1223 UProperty.NameChoice.SHORT); in getShortName()
DUCharacter.java2414 UCharacterProperty.INSTANCE.getIntPropertyValue(ch, UProperty.BLOCK)); in of()
2438 getPropertyValueName(UProperty.BLOCK, b.getID(), in forName()
2439 UProperty.NameChoice.LONG)); in forName()
4562 if (propEnum == UProperty.UNDEFINED) { in getPropertyEnum()
4620 if ((property == UProperty.CANONICAL_COMBINING_CLASS in getPropertyValueName()
4621 || property == UProperty.LEAD_CANONICAL_COMBINING_CLASS in getPropertyValueName()
4622 || property == UProperty.TRAIL_CANONICAL_COMBINING_CLASS) in getPropertyValueName()
4624 UProperty.CANONICAL_COMBINING_CLASS) in getPropertyValueName()
4626 UProperty.CANONICAL_COMBINING_CLASS) in getPropertyValueName()
4627 && nameChoice >= 0 && nameChoice < UProperty.NameChoice.COUNT) { in getPropertyValueName()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/lang/
DUScript.java871 … int propNum = UCharacter.getPropertyValueEnumNoThrow(UProperty.SCRIPT, nameOrAbbrOrLocale); in getCode()
872 if (propNum != UProperty.UNDEFINED) { in getCode()
882 … int propNum = UCharacter.getPropertyValueEnumNoThrow(UProperty.SCRIPT, nameOrAbbrOrLocale); in getCode()
883 if (propNum != UProperty.UNDEFINED) { in getCode()
900 int propNum = UCharacter.getPropertyValueEnumNoThrow(UProperty.SCRIPT, nameOrAbbr); in getCodeFromName()
901 return propNum == UProperty.UNDEFINED ? INVALID_CODE : propNum; in getCodeFromName()
1024 return UCharacter.getPropertyValueName(UProperty.SCRIPT, in getName()
1026 UProperty.NameChoice.LONG); in getName()
1039 return UCharacter.getPropertyValueName(UProperty.SCRIPT, in getShortName()
1041 UProperty.NameChoice.SHORT); in getShortName()
DUCharacter.java2054 UCharacterProperty.INSTANCE.getIntPropertyValue(ch, UProperty.BLOCK)); in of()
2077 getPropertyValueName(UProperty.BLOCK, b.getID(), in forName()
2078 UProperty.NameChoice.LONG)); in forName()
3963 if (propEnum == UProperty.UNDEFINED) { in getPropertyEnum()
4020 if ((property == UProperty.CANONICAL_COMBINING_CLASS in getPropertyValueName()
4021 || property == UProperty.LEAD_CANONICAL_COMBINING_CLASS in getPropertyValueName()
4022 || property == UProperty.TRAIL_CANONICAL_COMBINING_CLASS) in getPropertyValueName()
4024 UProperty.CANONICAL_COMBINING_CLASS) in getPropertyValueName()
4026 UProperty.CANONICAL_COMBINING_CLASS) in getPropertyValueName()
4027 && nameChoice >= 0 && nameChoice < UProperty.NameChoice.COUNT) { in getPropertyValueName()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/text/
DUnhandledBreakEngine.java15 import android.icu.lang.UProperty;
41 int script = UCharacter.getIntPropertyValue(c, UProperty.SCRIPT); in handleChar()
42 fHandled[breakType].applyIntPropertyValue(UProperty.SCRIPT, script); in handleChar()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DUnhandledBreakEngine.java14 import com.ibm.icu.lang.UProperty;
40 int script = UCharacter.getIntPropertyValue(c, UProperty.SCRIPT); in handleChar()
41 fHandled[breakType].applyIntPropertyValue(UProperty.SCRIPT, script); in handleChar()
/external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/layout/
DScriptData.java13 import com.ibm.icu.lang.UProperty;
138 int commonScript = UCharacter.getPropertyValueEnum(UProperty.SCRIPT, "COMMON"); in ScriptData()
142 fMinScript = UCharacter.getIntPropertyMinValue(UProperty.SCRIPT); in ScriptData()
143 fMaxScript = UCharacter.getIntPropertyMaxValue(UProperty.SCRIPT); in ScriptData()
/external/icu/icu4c/source/common/unicode/
Duchar.h161 typedef enum UProperty { enum
579 } UProperty; typedef
2007 u_hasBinaryProperty(UChar32 c, UProperty which);
2113 u_getIntPropertyValue(UChar32 c, UProperty which);
2134 u_getIntPropertyMinValue(UProperty which);
2163 u_getIntPropertyMaxValue(UProperty which);
2975 u_getPropertyName(UProperty property,
2997 U_STABLE UProperty U_EXPORT2
3048 u_getPropertyValueName(UProperty property,
3084 u_getPropertyValueEnum(UProperty property,
/external/icu/tools/srcgen/resources/
Dreplacements.txt87 * - alpha: isUAlphabetic(c) or hasBinaryProperty(c, UProperty.ALPHABETIC)
88 * - lower: isULowercase(c) or hasBinaryProperty(c, UProperty.LOWERCASE)
89 * - upper: isUUppercase(c) or hasBinaryProperty(c, UProperty.UPPERCASE)
94 * - xdigit: hasBinaryProperty(c, UProperty.POSIX_XDIGIT)
95 * - alnum: hasBinaryProperty(c, UProperty.POSIX_ALNUM)
96 * - space: isUWhiteSpace(c) or hasBinaryProperty(c, UProperty.WHITE_SPACE)
97 * - blank: hasBinaryProperty(c, UProperty.POSIX_BLANK)
99 * - graph: hasBinaryProperty(c, UProperty.POSIX_GRAPH)
100 * - print: hasBinaryProperty(c, UProperty.POSIX_PRINT)}</pre>

1234