Home
last modified time | relevance | path

Searched refs:UnicodeSet (Results 1 – 25 of 683) sorted by relevance

12345678910>>...28

/external/icu/icu4c/source/common/unicode/
Duniset.h281 class U_COMMON_API UnicodeSet U_FINAL : public UnicodeFilter {
378 UnicodeSet();
388 UnicodeSet(UChar32 start, UChar32 end);
408 UnicodeSet(const uint16_t buffer[], int32_t bufferLen,
420 UnicodeSet(const UnicodeString& pattern,
436 UnicodeSet(const UnicodeString& pattern,
455 UnicodeSet(const UnicodeString& pattern, ParsePosition& pos,
464 UnicodeSet(const UnicodeSet& o);
470 virtual ~UnicodeSet();
477 UnicodeSet& operator=(const UnicodeSet& o);
[all …]
/external/icu/libicu/cts_headers/unicode/
Duniset.h281 class U_COMMON_API UnicodeSet U_FINAL : public UnicodeFilter {
378 UnicodeSet();
388 UnicodeSet(UChar32 start, UChar32 end);
408 UnicodeSet(const uint16_t buffer[], int32_t bufferLen,
420 UnicodeSet(const UnicodeString& pattern,
436 UnicodeSet(const UnicodeString& pattern,
455 UnicodeSet(const UnicodeString& pattern, ParsePosition& pos,
464 UnicodeSet(const UnicodeSet& o);
470 virtual ~UnicodeSet();
477 UnicodeSet& operator=(const UnicodeSet& o);
[all …]
/external/icu/icu4c/source/common/
Duset.cpp35 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 …]
Ddictbe.h43 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 …]
Duniset.cpp64 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 …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
DStringTokenizerTest.java19 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/android_icu4j/src/main/tests/android/icu/dev/test/util/
DStringTokenizerTest.java20 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/icu4c/source/test/intltest/
Dusettest.h103 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/icu/android_icu4j/src/main/tests/android/icu/dev/test/lang/
DUnicodeSetTest.java43 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/icu4j/main/tests/core/src/com/ibm/icu/dev/test/lang/
DUnicodeSetTest.java42 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/cldr/tools/java/org/unicode/cldr/tool/
DCollectExemplars.java6 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()
24UnicodeSet 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/test/
DCheckExemplars.java19 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 …]
/external/icu/libicu/cts_headers/
Ddictbe.h43 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 …]
/external/cldr/tools/java/org/unicode/cldr/draft/
DExemplarInfo.java24 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 …]
DUnicodeSetBuilder.java14 import com.ibm.icu.text.UnicodeSet;
24 final StateMachine<UnicodeSet> machine;
31 StateMachineBuilder<UnicodeSet> builder = new StateMachineBuilder<>();
51 StateObjectBuilderFactory<UnicodeSet> {
53 public StateObjectBuilder<UnicodeSet> getInstance() { in getInstance()
62 private static final class MyObjectBuilder extends StateObjectBuilder<UnicodeSet> {
69 UnicodeSet set;
73 public Info(UnicodeSet set, boolean negated, Operation operation) { in Info()
81 private static final UnicodeSet WHITESPACE = new UnicodeSet("[:whitespace:]").freeze();
83 private static final UnicodeSet NOT_WHITESPACE = new UnicodeSet("[:^whitespace:]").freeze();
[all …]
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/
DTestUnicodeProperty.java17 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/android_icu4j/src/main/tests/android/icu/dev/test/translit/
DRoundTripTest.java34 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()
211UnicodeSet 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 …]
DTransliteratorDisorderedMarksTest.java19 import android.icu.text.UnicodeSet;
32 private static UnicodeSet disorderedMarks;
64 UnicodeMap<UnicodeSet> leadToTrail = new UnicodeMap(); in disorderedMarksAddAll()
65 UnicodeMap<UnicodeSet> leadToSources = new UnicodeMap(); in disorderedMarksAddAll()
66 UnicodeSet nonStarters = new UnicodeSet("[:^ccc=0:]").freeze(); in disorderedMarksAddAll()
69 disorderedMarks = new UnicodeSet(); in disorderedMarksAddAll()
92 UnicodeSet trailSet = leadToTrail.get(first); in disorderedMarksAddAll()
94 leadToTrail.put(first, trailSet = new UnicodeSet()); in disorderedMarksAddAll()
99 UnicodeSet sourcesSet = leadToSources.get(first); in disorderedMarksAddAll()
101 leadToSources.put(first, sourcesSet = new UnicodeSet()); in disorderedMarksAddAll()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/rbbi/
DRBBITestMonkey.java31 import com.ibm.icu.text.UnicodeSet;
91 UnicodeSet classSet = (UnicodeSet)charClasses().get(aClassNum); in classNameFromCodepoint()
134 UnicodeSet fCRLFSet;
135 UnicodeSet fControlSet;
136 UnicodeSet fExtendSet;
137 UnicodeSet fRegionalIndicatorSet;
138 UnicodeSet fPrependSet;
139 UnicodeSet fSpacingSet;
140 UnicodeSet fLSet;
141 UnicodeSet fVSet;
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/rbbi/
DRBBITestMonkey.java32 import android.icu.text.UnicodeSet;
94 UnicodeSet classSet = (UnicodeSet)charClasses().get(aClassNum); in classNameFromCodepoint()
137 UnicodeSet fCRLFSet;
138 UnicodeSet fControlSet;
139 UnicodeSet fExtendSet;
140 UnicodeSet fRegionalIndicatorSet;
141 UnicodeSet fPrependSet;
142 UnicodeSet fSpacingSet;
143 UnicodeSet fLSet;
144 UnicodeSet fVSet;
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DFilteredNormalizer2.java37 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/
DFilteredNormalizer2.java37 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/
DPatternTokenizer.java13 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 …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DPatternTokenizer.java12 import com.ibm.icu.text.UnicodeSet;
26 private UnicodeSet ignorableCharacters = new UnicodeSet();
27 private UnicodeSet syntaxCharacters = new UnicodeSet();
28 private UnicodeSet extraQuotingCharacters = new UnicodeSet();
29 private UnicodeSet escapeCharacters = new UnicodeSet();
34 private transient UnicodeSet needingQuoteCharacters = null;
41 public UnicodeSet getIgnorableCharacters() { in getIgnorableCharacters()
42 return (UnicodeSet) ignorableCharacters.clone(); in getIgnorableCharacters()
49 public PatternTokenizer setIgnorableCharacters(UnicodeSet ignorableCharacters) { in setIgnorableCharacters()
50 this.ignorableCharacters = (UnicodeSet) ignorableCharacters.clone(); in setIgnorableCharacters()
[all …]
/external/icu/icu4j/main/tests/translit/src/com/ibm/icu/dev/test/translit/
DTransliteratorDisorderedMarksTest.java18 import com.ibm.icu.text.UnicodeSet;
29 private static UnicodeSet disorderedMarks;
61 UnicodeMap<UnicodeSet> leadToTrail = new UnicodeMap(); in disorderedMarksAddAll()
62 UnicodeMap<UnicodeSet> leadToSources = new UnicodeMap(); in disorderedMarksAddAll()
63 UnicodeSet nonStarters = new UnicodeSet("[:^ccc=0:]").freeze(); in disorderedMarksAddAll()
66 disorderedMarks = new UnicodeSet(); in disorderedMarksAddAll()
89 UnicodeSet trailSet = leadToTrail.get(first); in disorderedMarksAddAll()
91 leadToTrail.put(first, trailSet = new UnicodeSet()); in disorderedMarksAddAll()
96 UnicodeSet sourcesSet = leadToSources.get(first); in disorderedMarksAddAll()
98 leadToSources.put(first, sourcesSet = new UnicodeSet()); in disorderedMarksAddAll()
[all …]

12345678910>>...28