Home
last modified time | relevance | path

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

12345678910>>...17

/external/icu/icu4c/source/common/unicode/
Duniset.h278 class U_COMMON_API UnicodeSet U_FINAL : public UnicodeFilter {
362 UnicodeSet();
372 UnicodeSet(UChar32 start, UChar32 end);
392 UnicodeSet(const uint16_t buffer[], int32_t bufferLen,
404 UnicodeSet(const UnicodeString& pattern,
420 UnicodeSet(const UnicodeString& pattern,
439 UnicodeSet(const UnicodeString& pattern, ParsePosition& pos,
448 UnicodeSet(const UnicodeSet& o);
454 virtual ~UnicodeSet();
461 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.h42 UnicodeSet fSet;
110 virtual void setCharacters( const UnicodeSet &set );
153 UnicodeSet fThaiWordSet;
154 UnicodeSet fEndWordSet;
155 UnicodeSet fBeginWordSet;
156 UnicodeSet fSuffixSet;
157 UnicodeSet fMarkSet;
210 UnicodeSet fLaoWordSet;
211 UnicodeSet fEndWordSet;
212 UnicodeSet fBeginWordSet;
[all …]
Duniset.cpp66 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(UnicodeSet) in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() argument
103 static inline void _dbgct(UnicodeSet* set) { in _dbgct()
111 static inline void _dbgdt(UnicodeSet* set) { in _dbgdt()
147 UnicodeSet::UnicodeSet() : in UnicodeSet() function in UnicodeSet
174 UnicodeSet::UnicodeSet(UChar32 start, UChar32 end) : in UnicodeSet() function in UnicodeSet
198 UnicodeSet::UnicodeSet(const UnicodeSet& o) : in UnicodeSet() function in UnicodeSet
222 UnicodeSet::UnicodeSet(const UnicodeSet& o, UBool /* asThawed */) : in UnicodeSet() function in UnicodeSet
259 UnicodeSet::~UnicodeSet() { in ~UnicodeSet()
274 UnicodeSet& UnicodeSet::operator=(const UnicodeSet& o) { in operator =()
328 UnicodeFunctor* UnicodeSet::clone() const { in clone()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/
DStringTokenizerTest.java18 import android.icu.text.UnicodeSet;
53 UnicodeSet delimiterset = new UnicodeSet("[" + delimiter + "]", false); in TestConstructors()
68 UnicodeSet delimiterset1 = new UnicodeSet("[" + delimiter + "]", true); in TestConstructors()
102 delimiterset = new UnicodeSet(); in TestConstructors()
554 UnicodeSet us = new UnicodeSet(); in Test_GeneratePattern()
579 UnicodeSet us = new UnicodeSet(0,100000); // Create a large Unicode set in TestMatches()
585 if(us.matches(null, offset, limit, true) != UnicodeSet.U_PARTIAL_MATCH){ in TestMatches()
586 errln("UnicodeSet.matches is suppose to return " + UnicodeSet.U_PARTIAL_MATCH + in TestMatches()
590 if(us.matches(null, offset, limit, false) != UnicodeSet.U_MATCH){ in TestMatches()
591 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/
DUnicodeSetTest.java40 import com.ibm.icu.text.UnicodeSet;
41 import com.ibm.icu.text.UnicodeSet.ComparisonStyle;
42 import com.ibm.icu.text.UnicodeSet.EntryRange;
43 import com.ibm.icu.text.UnicodeSet.SpanCondition;
140 UnicodeSet testSet; in TestPropertyAccess()
142 testSet = new UnicodeSet("[:" + propName + "=" + valueName + ":]"); in TestPropertyAccess()
150 UnicodeSet collectedErrors = new UnicodeSet(); in TestPropertyAccess()
177 checkPat(OTHER_TOPATTERN_TESTS[i], new UnicodeSet(OTHER_TOPATTERN_TESTS[i])); in TestToPattern()
189 UnicodeSet s = new UnicodeSet("[a-z {aa} {ab}]"); in TestToPattern()
228 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/
DUnicodeSetTest.java41 import android.icu.text.UnicodeSet;
42 import android.icu.text.UnicodeSet.ComparisonStyle;
43 import android.icu.text.UnicodeSet.EntryRange;
44 import android.icu.text.UnicodeSet.SpanCondition;
141 UnicodeSet testSet; in TestPropertyAccess()
143 testSet = new UnicodeSet("[:" + propName + "=" + valueName + ":]"); in TestPropertyAccess()
151 UnicodeSet collectedErrors = new UnicodeSet(); in TestPropertyAccess()
178 checkPat(OTHER_TOPATTERN_TESTS[i], new UnicodeSet(OTHER_TOPATTERN_TESTS[i])); in TestToPattern()
190 UnicodeSet s = new UnicodeSet("[a-z {aa} {ab}]"); in TestToPattern()
229 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/util/
DStringTokenizerTest.java17 import com.ibm.icu.text.UnicodeSet;
52 UnicodeSet delimiterset = new UnicodeSet("[" + delimiter + "]", false); in TestConstructors()
67 UnicodeSet delimiterset1 = new UnicodeSet("[" + delimiter + "]", true); in TestConstructors()
101 delimiterset = new UnicodeSet(); in TestConstructors()
553 UnicodeSet us = new UnicodeSet(); in Test_GeneratePattern()
578 UnicodeSet us = new UnicodeSet(0,100000); // Create a large Unicode set in TestMatches()
584 if(us.matches(null, offset, limit, true) != UnicodeSet.U_PARTIAL_MATCH){ in TestMatches()
585 errln("UnicodeSet.matches is suppose to return " + UnicodeSet.U_PARTIAL_MATCH + in TestMatches()
589 if(us.matches(null, offset, limit, false) != UnicodeSet.U_MATCH){ in TestMatches()
590 errln("UnicodeSet.matches is suppose to return " + UnicodeSet.U_MATCH + in TestMatches()
[all …]
/external/icu/icu4c/source/test/intltest/
Dusettest.h100 const UnicodeSet& testSet);
102 … UBool checkPat(const UnicodeString& source, const UnicodeSet& testSet, const UnicodeString& pat);
104 void _testComplement(int32_t a, UnicodeSet&, UnicodeSet&);
106 void _testAdd(int32_t a, int32_t b, UnicodeSet&, UnicodeSet&, UnicodeSet&);
108 void _testRetain(int32_t a, int32_t b, UnicodeSet&, UnicodeSet&, UnicodeSet&);
110 void _testRemove(int32_t a, int32_t b, UnicodeSet&, UnicodeSet&, UnicodeSet&);
112 void _testXor(int32_t a, int32_t b, UnicodeSet&, UnicodeSet&, UnicodeSet&);
118 void checkCanonicalRep(const UnicodeSet& set, const UnicodeString& msg);
123 static UnicodeSet& bitsToSet(int32_t a, UnicodeSet&);
129 static int32_t setToBits(const UnicodeSet& x);
[all …]
Dusettest.cpp37 UnicodeString operator+(const UnicodeString& left, const UnicodeSet& set) { in operator +()
108 UnicodeSet t; in Testj2268()
110 UnicodeSet test(t); in Testj2268()
133 UnicodeSet s(OTHER_TOPATTERN_TESTS[j], ec); in TestToPattern()
161 UnicodeSet* s = new UnicodeSet("[a-z {aa} {ab}]", ec); in TestToPattern()
204 UnicodeSet s; in TestToPattern()
220 UnicodeSet testSet; in toPatternAux()
226 const UnicodeSet& testSet) { in checkPat()
252 const UnicodeSet& testSet, in checkPat()
255 UnicodeSet testSet2(pat, ec); in checkPat()
[all …]
Drbbitst.cpp1995 UnicodeSet *fCRLFSet;
1996 UnicodeSet *fControlSet;
1997 UnicodeSet *fExtendSet;
1998 UnicodeSet *fZWJSet;
1999 UnicodeSet *fRegionalIndicatorSet;
2000 UnicodeSet *fPrependSet;
2001 UnicodeSet *fSpacingSet;
2002 UnicodeSet *fLSet;
2003 UnicodeSet *fVSet;
2004 UnicodeSet *fTSet;
[all …]
Ducdtest.cpp279 UnicodeSet alpha(UNICODE_STRING_SIMPLE("[:Alphabetic:]"), errorCode); in TestBinaryValues()
292 UnicodeSet set(pattern, errorCode); in TestBinaryValues()
306 UnicodeSet set(pattern, errorCode); in TestBinaryValues()
338 UnicodeSet set1, set2; in TestConsistency()
367 UnicodeSet syn_pp; in TestPatternProperties()
368 UnicodeSet syn_prop(UNICODE_STRING_SIMPLE("[:Pattern_Syntax:]"), errorCode); in TestPatternProperties()
369 UnicodeSet syn_list( in TestPatternProperties()
374 UnicodeSet ws_pp; in TestPatternProperties()
375 UnicodeSet ws_prop(UNICODE_STRING_SIMPLE("[:Pattern_White_Space:]"), errorCode); in TestPatternProperties()
376UnicodeSet ws_list(UNICODE_STRING_SIMPLE("[\\u0009-\\u000D\\ \\u0085\\u200E\\u200F\\u2028\\u2029]"… in TestPatternProperties()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/rbbi/
DRBBITestMonkey.java27 import android.icu.text.UnicodeSet;
103 UnicodeSet fCRLFSet;
104 UnicodeSet fControlSet;
105 UnicodeSet fExtendSet;
106 UnicodeSet fRegionalIndicatorSet;
107 UnicodeSet fPrependSet;
108 UnicodeSet fSpacingSet;
109 UnicodeSet fLSet;
110 UnicodeSet fVSet;
111 UnicodeSet fTSet;
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/rbbi/
DRBBITestMonkey.java26 import com.ibm.icu.text.UnicodeSet;
102 UnicodeSet fCRLFSet;
103 UnicodeSet fControlSet;
104 UnicodeSet fExtendSet;
105 UnicodeSet fRegionalIndicatorSet;
106 UnicodeSet fPrependSet;
107 UnicodeSet fSpacingSet;
108 UnicodeSet fLSet;
109 UnicodeSet fVSet;
110 UnicodeSet fTSet;
[all …]
/external/icu/icu4c/source/i18n/
Ddecfmtst.h27 class UnicodeSet; variable
43 static const UnicodeSet *getSimilarDecimals(UChar32 decimal, UBool strictParse);
45 UnicodeSet *fDotEquivalents;
46 UnicodeSet *fCommaEquivalents;
47 UnicodeSet *fOtherGroupingSeparators;
48 UnicodeSet *fDashEquivalents;
50 UnicodeSet *fStrictDotEquivalents;
51 UnicodeSet *fStrictCommaEquivalents;
52 UnicodeSet *fStrictOtherGroupingSeparators;
53 UnicodeSet *fStrictDashEquivalents;
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/translit/
DRoundTripTest.java32 import android.icu.text.UnicodeSet;
92 public void reset(UnicodeSet newSet) { in reset()
96 public void reset(UnicodeSet newSet, boolean abb) { in reset()
100 public void reset(UnicodeSet newSet, boolean abb, int density) { in reset()
187 final UnicodeSet representativeHangul = getRepresentativeHangul(); in TestHangul2()
203 public static UnicodeSet getRepresentativeHangul() { in getRepresentativeHangul()
204UnicodeSet extraSamples = new UnicodeSet("[\uCE20{\uAD6C\uB514}{\uAD73\uC774}{\uBB34\uB837}{\uBB3C… in getRepresentativeHangul()
205 UnicodeSet sourceSet = new UnicodeSet(); in getRepresentativeHangul()
212 UnicodeSet more = getRepresentativeBoundaryHangul(); in getRepresentativeHangul()
218 private static UnicodeSet getRepresentativeBoundaryHangul() { in getRepresentativeBoundaryHangul()
[all …]
/external/icu/icu4j/main/tests/translit/src/com/ibm/icu/dev/test/translit/
DRoundTripTest.java31 import com.ibm.icu.text.UnicodeSet;
91 public void reset(UnicodeSet newSet) { in reset()
95 public void reset(UnicodeSet newSet, boolean abb) { in reset()
99 public void reset(UnicodeSet newSet, boolean abb, int density) { in reset()
186 final UnicodeSet representativeHangul = getRepresentativeHangul(); in TestHangul2()
202 public static UnicodeSet getRepresentativeHangul() { in getRepresentativeHangul()
203UnicodeSet extraSamples = new UnicodeSet("[\uCE20{\uAD6C\uB514}{\uAD73\uC774}{\uBB34\uB837}{\uBB3C… in getRepresentativeHangul()
204 UnicodeSet sourceSet = new UnicodeSet(); in getRepresentativeHangul()
211 UnicodeSet more = getRepresentativeBoundaryHangul(); in getRepresentativeHangul()
217 private static UnicodeSet getRepresentativeBoundaryHangul() { in getRepresentativeBoundaryHangul()
[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 …]
DSourceTargetUtility.java22 final UnicodeSet sourceCache;
24 static final UnicodeSet NON_STARTERS = new UnicodeSet("[:^ccc=0:]").freeze();
59 sourceCache = new UnicodeSet("[:^ccc=0:]"); in SourceTargetUtility()
61 sourceCache = new UnicodeSet(); in SourceTargetUtility()
117 …lic void addSourceTargetSet(Transliterator transliterator, UnicodeSet inputFilter, UnicodeSet sour… in addSourceTargetSet()
118 UnicodeSet targetSet) { in addSourceTargetSet()
119 UnicodeSet myFilter = transliterator.getFilterAsUnicodeSet(inputFilter); in addSourceTargetSet()
120 UnicodeSet affectedCharacters = new UnicodeSet(sourceCache).retainAll(myFilter); in addSourceTargetSet()
/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/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/tools/misc/src/com/ibm/icu/dev/tool/translit/
DUnicodeSetClosure.java20 import com.ibm.icu.text.UnicodeSet;
28 UnicodeSet foo = new UnicodeSet("[\u1FF6-\u1FFD\u2000-\u2001\u2126]"); in main()
66 UnicodeSet s = new UnicodeSet(rules); in generateSets()
111 UnicodeSet original = new UnicodeSet(testStr); in test()
115 UnicodeSet raw = new UnicodeSet(original); in test()
132 UnicodeSet test = new UnicodeSet(original); in test()
221 public static void close(UnicodeSet s, Normalizer.Mode m, boolean lowerFirst) { in close()
232 public static void close(UnicodeSet s, Char32ToString f) { in close()
233 if (GENERATE) generatedSet = new UnicodeSet(); in close()
252 public static void close2(UnicodeSet s, Char32ToString f, int lc, int mode) { in close2()
[all …]
/external/icu/icu4j/main/classes/translit/src/com/ibm/icu/text/
DSourceTargetUtility.java21 final UnicodeSet sourceCache;
23 static final UnicodeSet NON_STARTERS = new UnicodeSet("[:^ccc=0:]").freeze();
58 sourceCache = new UnicodeSet("[:^ccc=0:]"); in SourceTargetUtility()
60 sourceCache = new UnicodeSet(); in SourceTargetUtility()
116 …lic void addSourceTargetSet(Transliterator transliterator, UnicodeSet inputFilter, UnicodeSet sour… in addSourceTargetSet()
117 UnicodeSet targetSet) { in addSourceTargetSet()
118 UnicodeSet myFilter = transliterator.getFilterAsUnicodeSet(inputFilter); in addSourceTargetSet()
119 UnicodeSet affectedCharacters = new UnicodeSet(sourceCache).retainAll(myFilter); in addSourceTargetSet()
/external/icu/icu4j/main/tests/charset/src/com/ibm/icu/dev/test/charset/
DTestSelection.java36 import com.ibm.icu.text.UnicodeSet;
83 UnicodeSet[] excludedSets = new UnicodeSet[] { in TestConversionUTF16()
84 UnicodeSet.EMPTY, // empty set in TestConversionUTF16()
85 new UnicodeSet(30, 500), // arbitrary code range for testing in TestConversionUTF16()
88 for (UnicodeSet excluded : excludedSets) { in TestConversionUTF16()
98 UnicodeSet excluded, int mappingType) { in verifyResultUTF16()
100 UnicodeSet unicodePointSet = new UnicodeSet(); in verifyResultUTF16()
128 UnicodeSet nonEmptySet = new UnicodeSet(); in TestCharsetSelectorCodeCoverage()

12345678910>>...17