/external/icu/icu4c/source/common/unicode/ |
D | uniset.h | 277 class U_COMMON_API UnicodeSet U_FINAL : public UnicodeFilter { 374 UnicodeSet(); 384 UnicodeSet(UChar32 start, UChar32 end); 404 UnicodeSet(const uint16_t buffer[], int32_t bufferLen, 416 UnicodeSet(const UnicodeString& pattern, 432 UnicodeSet(const UnicodeString& pattern, 451 UnicodeSet(const UnicodeString& pattern, ParsePosition& pos, 460 UnicodeSet(const UnicodeSet& o); 466 virtual ~UnicodeSet(); 473 UnicodeSet& operator=(const UnicodeSet& o); [all …]
|
/external/icu/icu4c/source/common/ |
D | uset.cpp | 35 return (USet*) new UnicodeSet(); in uset_openEmpty() 40 return (USet*) new UnicodeSet(start, end); in uset_open() 45 delete (UnicodeSet*) set; in uset_close() 50 return (USet*) (((UnicodeSet*) set)->UnicodeSet::clone()); in uset_clone() 55 return ((UnicodeSet*) set)->UnicodeSet::isFrozen(); in uset_isFrozen() 60 ((UnicodeSet*) set)->UnicodeSet::freeze(); in uset_freeze() 65 return (USet*) (((UnicodeSet*) set)->UnicodeSet::cloneAsThawed()); in uset_cloneAsThawed() 71 ((UnicodeSet*) set)->UnicodeSet::set(start, end); in uset_set() 76 ((UnicodeSet*) set)->UnicodeSet::addAll(*((const UnicodeSet*)additionalSet)); in uset_addAll() 81 ((UnicodeSet*) set)->UnicodeSet::add(c); in uset_add() [all …]
|
D | uniset.cpp | 64 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(UnicodeSet) in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() argument 101 static inline void _dbgct(UnicodeSet* set) { in _dbgct() 109 static inline void _dbgdt(UnicodeSet* set) { in _dbgdt() 138 UBool UnicodeSet::hasStrings() const { in hasStrings() 142 int32_t UnicodeSet::stringsSize() const { in stringsSize() 146 UBool UnicodeSet::stringsContains(const UnicodeString &s) const { in stringsContains() 157 UnicodeSet::UnicodeSet() { in UnicodeSet() function in UnicodeSet 169 UnicodeSet::UnicodeSet(UChar32 start, UChar32 end) { in UnicodeSet() function in UnicodeSet 178 UnicodeSet::UnicodeSet(const UnicodeSet& o) : UnicodeFilter(o) { in UnicodeSet() function in UnicodeSet 184 UnicodeSet::UnicodeSet(const UnicodeSet& o, UBool /* asThawed */) : UnicodeFilter(o) { in UnicodeSet() function in UnicodeSet [all …]
|
D | dictbe.h | 43 UnicodeSet fSet; 90 virtual void setCharacters( const UnicodeSet &set ); 126 UnicodeSet fThaiWordSet; 127 UnicodeSet fEndWordSet; 128 UnicodeSet fBeginWordSet; 129 UnicodeSet fSuffixSet; 130 UnicodeSet fMarkSet; 183 UnicodeSet fLaoWordSet; 184 UnicodeSet fEndWordSet; 185 UnicodeSet fBeginWordSet; [all …]
|
D | static_unicode_sets.cpp | 26 UnicodeSet* gUnicodeSets[COUNT] = {}; 30 alignas(UnicodeSet) 31 char gEmptyUnicodeSet[sizeof(UnicodeSet)]; 36 inline UnicodeSet* getImpl(Key key) { in getImpl() 37 UnicodeSet* candidate = gUnicodeSets[key]; in getImpl() 39 return reinterpret_cast<UnicodeSet*>(gEmptyUnicodeSet); in getImpl() 44 UnicodeSet* computeUnion(Key k1, Key k2) { in computeUnion() 45 UnicodeSet* result = new UnicodeSet(); in computeUnion() 55 UnicodeSet* computeUnion(Key k1, Key k2, Key k3) { in computeUnion() 56 UnicodeSet* result = new UnicodeSet(); in computeUnion() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/ |
D | StringTokenizerTest.java | 20 import android.icu.text.UnicodeSet; 58 UnicodeSet delimiterset = new UnicodeSet("[" + delimiter + "]", false); in TestConstructors() 73 UnicodeSet delimiterset1 = new UnicodeSet("[" + delimiter + "]", true); in TestConstructors() 107 delimiterset = new UnicodeSet(); in TestConstructors() 559 UnicodeSet us = new UnicodeSet(); in Test_GeneratePattern() 584 UnicodeSet us = new UnicodeSet(0,100000); // Create a large Unicode set in TestMatches() 590 if(us.matches(null, offset, limit, true) != UnicodeSet.U_PARTIAL_MATCH){ in TestMatches() 591 errln("UnicodeSet.matches is suppose to return " + UnicodeSet.U_PARTIAL_MATCH + in TestMatches() 595 if(us.matches(null, offset, limit, false) != UnicodeSet.U_MATCH){ in TestMatches() 596 errln("UnicodeSet.matches is suppose to return " + UnicodeSet.U_MATCH + in TestMatches() [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ |
D | StringTokenizerTest.java | 19 import com.ibm.icu.text.UnicodeSet; 55 UnicodeSet delimiterset = new UnicodeSet("[" + delimiter + "]", false); in TestConstructors() 70 UnicodeSet delimiterset1 = new UnicodeSet("[" + delimiter + "]", true); in TestConstructors() 104 delimiterset = new UnicodeSet(); in TestConstructors() 556 UnicodeSet us = new UnicodeSet(); in Test_GeneratePattern() 581 UnicodeSet us = new UnicodeSet(0,100000); // Create a large Unicode set in TestMatches() 587 if(us.matches(null, offset, limit, true) != UnicodeSet.U_PARTIAL_MATCH){ in TestMatches() 588 errln("UnicodeSet.matches is suppose to return " + UnicodeSet.U_PARTIAL_MATCH + in TestMatches() 592 if(us.matches(null, offset, limit, false) != UnicodeSet.U_MATCH){ in TestMatches() 593 errln("UnicodeSet.matches is suppose to return " + UnicodeSet.U_MATCH + in TestMatches() [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/lang/ |
D | UnicodeSetTest.java | 42 import com.ibm.icu.text.UnicodeSet; 43 import com.ibm.icu.text.UnicodeSet.ComparisonStyle; 44 import com.ibm.icu.text.UnicodeSet.EntryRange; 45 import com.ibm.icu.text.UnicodeSet.SpanCondition; 143 UnicodeSet testSet; in TestPropertyAccess() 145 testSet = new UnicodeSet("[:" + propName + "=" + valueName + ":]"); in TestPropertyAccess() 153 UnicodeSet collectedErrors = new UnicodeSet(); in TestPropertyAccess() 180 checkPat(OTHER_TOPATTERN_TESTS[i], new UnicodeSet(OTHER_TOPATTERN_TESTS[i])); in TestToPattern() 192 UnicodeSet s = new UnicodeSet("[a-z {aa} {ab}]"); in TestToPattern() 231 s.retainAll(new UnicodeSet("[:age=6.0:]")); // stabilize this test in TestToPattern() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/lang/ |
D | UnicodeSetTest.java | 43 import android.icu.text.UnicodeSet; 44 import android.icu.text.UnicodeSet.ComparisonStyle; 45 import android.icu.text.UnicodeSet.EntryRange; 46 import android.icu.text.UnicodeSet.SpanCondition; 146 UnicodeSet testSet; in TestPropertyAccess() 148 testSet = new UnicodeSet("[:" + propName + "=" + valueName + ":]"); in TestPropertyAccess() 156 UnicodeSet collectedErrors = new UnicodeSet(); in TestPropertyAccess() 183 checkPat(OTHER_TOPATTERN_TESTS[i], new UnicodeSet(OTHER_TOPATTERN_TESTS[i])); in TestToPattern() 195 UnicodeSet s = new UnicodeSet("[a-z {aa} {ab}]"); in TestToPattern() 234 s.retainAll(new UnicodeSet("[:age=6.0:]")); // stabilize this test in TestToPattern() [all …]
|
/external/icu/icu4c/source/test/intltest/ |
D | usettest.h | 103 const UnicodeSet& testSet); 105 … UBool checkPat(const UnicodeString& source, const UnicodeSet& testSet, const UnicodeString& pat); 107 void _testComplement(int32_t a, UnicodeSet&, UnicodeSet&); 109 void _testAdd(int32_t a, int32_t b, UnicodeSet&, UnicodeSet&, UnicodeSet&); 111 void _testRetain(int32_t a, int32_t b, UnicodeSet&, UnicodeSet&, UnicodeSet&); 113 void _testRemove(int32_t a, int32_t b, UnicodeSet&, UnicodeSet&, UnicodeSet&); 115 void _testXor(int32_t a, int32_t b, UnicodeSet&, UnicodeSet&, UnicodeSet&); 121 void checkCanonicalRep(const UnicodeSet& set, const UnicodeString& msg); 126 static UnicodeSet& bitsToSet(int32_t a, UnicodeSet&); 132 static int32_t setToBits(const UnicodeSet& x); [all …]
|
/external/cldr/tools/java/org/unicode/cldr/tool/ |
D | CollectExemplars.java | 6 import com.ibm.icu.text.UnicodeSet; 14 UnicodeSet target = new UnicodeSet(); in main() 15 add("special", null, new UnicodeSet("[㐀-䶵一-鿌﨎﨏﨑﨓﨔﨟﨡﨣﨤﨧-﨩- --]"), target); in main() 18 UnicodeSet mainExemplars = LocaleData.getExemplarSet(locale, UnicodeSet.CASE); in main() 24 …UnicodeSet auxExemplars = LocaleData.getExemplarSet(locale, UnicodeSet.CASE, LocaleData.ES_AUXILIA… in main() 29 UnicodeSet toRemove = new UnicodeSet(); in main() 44 … removing("whitespace, controls, symbol, punct", target, new UnicodeSet("[[:z:][:c:][:s:][:p:]]")); in main() 45 removing("numbers", target, new UnicodeSet("[:n:]")); in main() 46 add("ASCII numbers", null, new UnicodeSet("[0-9]"), target); in main() 47 add("joiners", null, new UnicodeSet("[:join_controls:]"), target); in main() [all …]
|
/external/cldr/tools/java/org/unicode/cldr/draft/ |
D | UnicodeSetBuilder.java | 14 import com.ibm.icu.text.UnicodeSet; 24 final StateMachine<UnicodeSet> machine; 31 StateMachineBuilder<UnicodeSet> builder = new StateMachineBuilder<UnicodeSet>(); 51 StateObjectBuilderFactory<UnicodeSet> { 52 public StateObjectBuilder<UnicodeSet> getInstance() { in getInstance() 61 private static final class MyObjectBuilder extends StateObjectBuilder<UnicodeSet> { 68 UnicodeSet set; 72 public Info(UnicodeSet set, boolean negated, Operation operation) { in Info() 80 …private static final UnicodeSet WHITESPACE = (UnicodeSet) new UnicodeSet("[:whitespace:]").freeze(… 82 …private static final UnicodeSet NOT_WHITESPACE = (UnicodeSet) new UnicodeSet("[:^whitespace:]").fr… [all …]
|
D | ExemplarInfo.java | 24 import com.ibm.icu.text.UnicodeSet; 33 …public static UnicodeSet IGNORE = new UnicodeSet("[[:sc=unknown:][:script=common:]-[:M:]]").freeze… 34 public static UnicodeSet TEST_ENCODING = new UnicodeSet("[[:any:]-[:c:] [:cc:]]").freeze(); 42 private static final Normalizer2 nfkdMinus = new FilteredNormalizer2(nfkd, new UnicodeSet("[" + 50 private static UnicodeSet az = new UnicodeSet("[a-z]").freeze(); 88 ….putAll(new UnicodeSet("[一七三-下中九二五人休先入八六円出力十千口右名四土夕大天女子字学小山川左年手文日早月木本村林校森正気水火犬玉王生田男町白百目石空立竹糸耳花草虫見貝… 91 new UnicodeSet( 95 new UnicodeSet( 99 new UnicodeSet( 103 new UnicodeSet( [all …]
|
D | Typology.java | 23 import com.ibm.icu.text.UnicodeSet; 28 public static final UnicodeSet SKIP = new UnicodeSet("[[:C:]-[:Cf:]-[:Cc:]]").freeze(); 30 public static Map<String, UnicodeSet> label_to_uset = new TreeMap<String, UnicodeSet>(); 44 public static Map<String, UnicodeSet> full_path_to_uset = new TreeMap<String, UnicodeSet>(); 45 public static Map<String, UnicodeSet> path_to_uset = new TreeMap<String, UnicodeSet>(); 48 …public static Map<String, Map<String, UnicodeSet>> label_parent_uset = new TreeMap<String, Map<Str… 84 UnicodeSet uset = full_path_to_uset.get(fullPath); in handleLine() 86 full_path_to_uset.put(fullPath, uset = new UnicodeSet()); in handleLine() 99 UnicodeSet uset = label_to_uset.get(item); in handleLine() 101 label_to_uset.put(item, uset = new UnicodeSet()); in handleLine() [all …]
|
D | NormalizedIdentifierParser.java | 9 import com.ibm.icu.text.UnicodeSet; 20 static final UnicodeSet XmlNameStartChar = (UnicodeSet) new UnicodeSet("[\\: A-Z _ a-z " + 24 static final UnicodeSet XmlNameContinueChar = (UnicodeSet) new UnicodeSet( 26 …static final UnicodeSet XmlNameChar = (UnicodeSet) new UnicodeSet(XmlNameStartChar).addAll(XmlName… 28 …static final UnicodeSet XmlWhiteSpace = (UnicodeSet) new UnicodeSet("[\\u0009\\u000D\\u000A\\u0020… 29 static final UnicodeSet XmlIllegal = (UnicodeSet) new UnicodeSet( 31 static final UnicodeSet NfcSafe = (UnicodeSet) new UnicodeSet("[:nfkcqc=yes:]").freeze(); 144 Map<Status, Map<Status, UnicodeSet>> map = new TreeMap<Status, Map<Status, UnicodeSet>>(); 154 Map<Status, UnicodeSet> map2 = map.get(sourceStatus); 156 map.put(sourceStatus, map2 = new TreeMap<Status, UnicodeSet>()); [all …]
|
/external/cldr/tools/java/org/unicode/cldr/test/ |
D | CheckExemplars.java | 19 import com.ibm.icu.text.UnicodeSet; 37 static final UnicodeSet HangulSyllables = new UnicodeSet( 40 public static final UnicodeSet AlwaysOK; 43 AlwaysOK = new UnicodeSet("[\\u0020\\u00A0]"); 45 AlwaysOK = new UnicodeSet( 53 private static final UnicodeSet SPECIAL_ALLOW = new UnicodeSet( 62 …public static final UnicodeSet UAllowedInExemplars = new UnicodeSet("[[:assigned:]-[:Z:]]") // [:a… 69 …public static final UnicodeSet UAllowedInNumbers = new UnicodeSet("[\u00A0\u202F[:N:][:P:][:Sm:][:… 73 public static final UnicodeSet AllowedInExemplars = new UnicodeSet(UAllowedInExemplars) 74 .removeAll(new UnicodeSet("[[:Uppercase:]-[\u0130]]")) [all …]
|
D | TestMisc.java | 50 import com.ibm.icu.text.UnicodeSet; 120 UnicodeSet set = new UnicodeSet(test, p, sym); in main() 121 UnicodeSet codes = set.complement().complement(); in main() 165 … UnicodeSet RTL = new UnicodeSet("[[:Bidi_Class=Arabic_Letter:][:Bidi_Class=Right_To_Left:]]"); in main() 192 UnicodeSet x = new UnicodeSet("[a-z]"); in main() 193 UnicodeSet y = (UnicodeSet) new UnicodeSet("[a-z]").freeze(); in main() 242 UnicodeSet caseFolded = new UnicodeSet(); in testScripts() 243 UnicodeSet simpleCaseFolded = new UnicodeSet(); in testScripts() 256 UnicodeSet functionalExceptCase = (UnicodeSet) new UnicodeSet("[" + in testScripts() 261 UnicodeSet asciiIdn = (UnicodeSet) new UnicodeSet("[-A-Z0-9]").freeze(); in testScripts() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/rbbi/ |
D | RBBITestMonkey.java | 32 import android.icu.text.UnicodeSet; 85 UnicodeSet fCRLFSet; 86 UnicodeSet fControlSet; 87 UnicodeSet fExtendSet; 88 UnicodeSet fRegionalIndicatorSet; 89 UnicodeSet fPrependSet; 90 UnicodeSet fSpacingSet; 91 UnicodeSet fLSet; 92 UnicodeSet fVSet; 93 UnicodeSet fTSet; [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/rbbi/ |
D | RBBITestMonkey.java | 31 import com.ibm.icu.text.UnicodeSet; 82 UnicodeSet fCRLFSet; 83 UnicodeSet fControlSet; 84 UnicodeSet fExtendSet; 85 UnicodeSet fRegionalIndicatorSet; 86 UnicodeSet fPrependSet; 87 UnicodeSet fSpacingSet; 88 UnicodeSet fLSet; 89 UnicodeSet fVSet; 90 UnicodeSet fTSet; [all …]
|
/external/cldr/tools/java/org/unicode/cldr/util/ |
D | Emoji.java | 15 import com.ibm.icu.text.UnicodeSet; 21 public static final UnicodeSet REGIONAL_INDICATORS = new UnicodeSet(0x1F1E6, 0x1F1FF).freeze(); 22 public static final UnicodeSet MODIFIERS = new UnicodeSet("[-]").freeze(); 23 public static final UnicodeSet TAGS = new UnicodeSet(0xE0000, 0xE007F).freeze(); 24 public static final UnicodeSet FAMILY = new UnicodeSet("[\u200D - ❤]").freeze(); 25 public static final UnicodeSet GENDER = new UnicodeSet().add(0x2640).add(0x2642).freeze(); 26 public static final UnicodeSet SPECIALS = new UnicodeSet("[{}{}{☠}]").freeze(); 27 public static final UnicodeSet MAN_WOMAN = new UnicodeSet("[ ]").freeze(); 28 …public static final UnicodeSet OBJECT = new UnicodeSet("[ ✈ … 33 static final UnicodeSet nonConstructed = new UnicodeSet(); [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/translit/ |
D | RoundTripTest.java | 34 import android.icu.text.UnicodeSet; 98 public void reset(UnicodeSet newSet) { in reset() 102 public void reset(UnicodeSet newSet, boolean abb) { in reset() 106 public void reset(UnicodeSet newSet, boolean abb, int density) { in reset() 194 final UnicodeSet representativeHangul = getRepresentativeHangul(); in TestHangul2() 210 public static UnicodeSet getRepresentativeHangul() { in getRepresentativeHangul() 211 …UnicodeSet extraSamples = new UnicodeSet("[\uCE20{\uAD6C\uB514}{\uAD73\uC774}{\uBB34\uB837}{\uBB3C… in getRepresentativeHangul() 212 UnicodeSet sourceSet = new UnicodeSet(); in getRepresentativeHangul() 219 UnicodeSet more = getRepresentativeBoundaryHangul(); in getRepresentativeHangul() 225 private static UnicodeSet getRepresentativeBoundaryHangul() { in getRepresentativeBoundaryHangul() [all …]
|
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/ |
D | TestUnicodeProperty.java | 17 import com.ibm.icu.text.UnicodeSet; 28 static final UnicodeSet casedLetter = new UnicodeSet("[:gc=cased letter:]"); 29 static final UnicodeSet letter = new UnicodeSet("[:gc=L:]"); 36 final UnicodeSet lu = property.getSet("Lu"); in TestBasic() 45 UnicodeSet.setDefaultXSymbolTable(upst); in TestSymbolTable() 47 final UnicodeSet luSet = new UnicodeSet("[:gc=L:]"); in TestSymbolTable() 51 UnicodeSet casedLetter2 = new UnicodeSet("[:gc=cased letter:]"); in TestSymbolTable() 55 UnicodeSet.setDefaultXSymbolTable(null); in TestSymbolTable() 62 UnicodeSet.setDefaultXSymbolTable(upst); in TestSymbolTable2() 64 final UnicodeSet luSet = new UnicodeSet("[:gc=L:]"); in TestSymbolTable2() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | FilteredNormalizer2.java | 37 public FilteredNormalizer2(Normalizer2 n2, UnicodeSet filterSet) { in FilteredNormalizer2() 52 normalize(src, dest, UnicodeSet.SpanCondition.SIMPLE); in normalize() 64 return normalize(src, dest, UnicodeSet.SpanCondition.SIMPLE); in normalize() 127 UnicodeSet.SpanCondition spanCondition=UnicodeSet.SpanCondition.SIMPLE; in isNormalized() 130 if(spanCondition==UnicodeSet.SpanCondition.NOT_CONTAINED) { in isNormalized() 131 spanCondition=UnicodeSet.SpanCondition.SIMPLE; in isNormalized() 136 spanCondition=UnicodeSet.SpanCondition.NOT_CONTAINED; in isNormalized() 150 UnicodeSet.SpanCondition spanCondition=UnicodeSet.SpanCondition.SIMPLE; in quickCheck() 153 if(spanCondition==UnicodeSet.SpanCondition.NOT_CONTAINED) { in quickCheck() 154 spanCondition=UnicodeSet.SpanCondition.SIMPLE; in quickCheck() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | FilteredNormalizer2.java | 37 public FilteredNormalizer2(Normalizer2 n2, UnicodeSet filterSet) { in FilteredNormalizer2() 51 normalize(src, dest, UnicodeSet.SpanCondition.SIMPLE); in normalize() 62 return normalize(src, dest, UnicodeSet.SpanCondition.SIMPLE); in normalize() 118 UnicodeSet.SpanCondition spanCondition=UnicodeSet.SpanCondition.SIMPLE; in isNormalized() 121 if(spanCondition==UnicodeSet.SpanCondition.NOT_CONTAINED) { in isNormalized() 122 spanCondition=UnicodeSet.SpanCondition.SIMPLE; in isNormalized() 127 spanCondition=UnicodeSet.SpanCondition.NOT_CONTAINED; in isNormalized() 140 UnicodeSet.SpanCondition spanCondition=UnicodeSet.SpanCondition.SIMPLE; in quickCheck() 143 if(spanCondition==UnicodeSet.SpanCondition.NOT_CONTAINED) { in quickCheck() 144 spanCondition=UnicodeSet.SpanCondition.SIMPLE; in quickCheck() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
D | PatternTokenizer.java | 13 import android.icu.text.UnicodeSet; 28 private UnicodeSet ignorableCharacters = new UnicodeSet(); 29 private UnicodeSet syntaxCharacters = new UnicodeSet(); 30 private UnicodeSet extraQuotingCharacters = new UnicodeSet(); 31 private UnicodeSet escapeCharacters = new UnicodeSet(); 36 private transient UnicodeSet needingQuoteCharacters = null; 43 public UnicodeSet getIgnorableCharacters() { in getIgnorableCharacters() 44 return (UnicodeSet) ignorableCharacters.clone(); in getIgnorableCharacters() 51 public PatternTokenizer setIgnorableCharacters(UnicodeSet ignorableCharacters) { in setIgnorableCharacters() 52 this.ignorableCharacters = (UnicodeSet) ignorableCharacters.clone(); in setIgnorableCharacters() [all …]
|