Home
last modified time | relevance | path

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

123456

/external/icu4c/common/unicode/
Duniset.h272 class U_COMMON_API UnicodeSet : public UnicodeFilter {
356 UnicodeSet();
366 UnicodeSet(UChar32 start, UChar32 end);
376 UnicodeSet(const UnicodeString& pattern,
391 UnicodeSet(const UnicodeString& pattern,
409 UnicodeSet(const UnicodeString& pattern, ParsePosition& pos,
418 UnicodeSet(const UnicodeSet& o);
424 virtual ~UnicodeSet();
431 UnicodeSet& operator=(const UnicodeSet& o);
444 virtual UBool operator==(const UnicodeSet& o) const;
[all …]
Dusetiter.h21 class UnicodeSet; variable
107 UnicodeSetIterator(const UnicodeSet& set);
220 void reset(const UnicodeSet& set);
252 const UnicodeSet* set;
/external/icu4c/common/
Duset.cpp33 return (USet*) new UnicodeSet(); in uset_openEmpty()
38 return (USet*) new UnicodeSet(start, end); in uset_open()
43 delete (UnicodeSet*) set; in uset_close()
48 return (USet*) (((UnicodeSet*) set)->UnicodeSet::clone()); in uset_clone()
53 return ((UnicodeSet*) set)->UnicodeSet::isFrozen(); in uset_isFrozen()
58 ((UnicodeSet*) set)->UnicodeSet::freeze(); in uset_freeze()
63 return (USet*) (((UnicodeSet*) set)->UnicodeSet::cloneAsThawed()); in uset_cloneAsThawed()
69 ((UnicodeSet*) set)->UnicodeSet::set(start, end); in uset_set()
74 ((UnicodeSet*) set)->UnicodeSet::addAll(*((const UnicodeSet*)additionalSet)); in uset_addAll()
79 ((UnicodeSet*) set)->UnicodeSet::add(c); in uset_add()
[all …]
Duniset.cpp63 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(UnicodeSet) in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() argument
100 static inline void _dbgct(UnicodeSet* set) { in _dbgct()
108 static inline void _dbgdt(UnicodeSet* set) { in _dbgdt()
144 UnicodeSet::UnicodeSet() : in UnicodeSet() function in UnicodeSet
171 UnicodeSet::UnicodeSet(UChar32 start, UChar32 end) : in UnicodeSet() function in UnicodeSet
195 UnicodeSet::UnicodeSet(const UnicodeSet& o) : in UnicodeSet() function in UnicodeSet
219 UnicodeSet::UnicodeSet(const UnicodeSet& o, UBool /* asThawed */) : in UnicodeSet() function in UnicodeSet
256 UnicodeSet::~UnicodeSet() { in ~UnicodeSet()
271 UnicodeSet& UnicodeSet::operator=(const UnicodeSet& o) { in operator =()
325 UnicodeFunctor* UnicodeSet::clone() const { in clone()
[all …]
Ddictbe.h39 UnicodeSet fSet;
107 virtual void setCharacters( const UnicodeSet &set );
150 UnicodeSet fThaiWordSet;
151 UnicodeSet fEndWordSet;
152 UnicodeSet fBeginWordSet;
153 UnicodeSet fSuffixSet;
154 UnicodeSet fMarkSet;
208 UnicodeSet fKhmerWordSet;
209 UnicodeSet fEndWordSet;
210 UnicodeSet fBeginWordSet;
[all …]
Duniset_props.cpp105 class UnicodeSetSingleton : public SimpleSingletonWrapper<UnicodeSet> {
108 SimpleSingletonWrapper<UnicodeSet>(s), fPattern(pattern) {} in UnicodeSetSingleton()
109 UnicodeSet *getInstance(UErrorCode &errorCode) { in getInstance()
110 return SimpleSingletonWrapper<UnicodeSet>::getInstance(createInstance, fPattern, errorCode); in getInstance()
115 UnicodeSet *set=new UnicodeSet(pattern, errorCode); in createInstance()
130 static UnicodeSet *INCLUSIONS[UPROPS_SRC_COUNT] = { NULL }; // cached getInclusions()
142 ((UnicodeSet *)set)->add(c); in _set_add()
147 ((UnicodeSet *)set)->add(start, end); in _set_addRange()
152 ((UnicodeSet *)set)->add(UnicodeString((UBool)(length<0), str, length)); in _set_addString()
182 const UnicodeSet* UnicodeSet::getInclusions(int32_t src, UErrorCode &status) { in getInclusions()
[all …]
Duset_props.cpp35 UnicodeSet* set = new UnicodeSet(pat, *ec); in uset_openPattern()
55 UnicodeSet* set = new UnicodeSet(pat, options, NULL, *ec); in uset_openPatternOptions()
94 ((UnicodeSet*) set)->applyPattern(pat, pos, options, NULL, *status); in uset_applyPattern()
102 ((UnicodeSet*) set)->applyIntPropertyValue(prop, value, *ec); in uset_applyIntPropertyValue()
114 ((UnicodeSet*) set)->applyPropertyAlias(p, v, *ec); in uset_applyPropertyAlias()
125 UnicodeSet::resemblesPattern(pat, pos); in uset_resemblesPattern()
134 ((const UnicodeSet*) set)->toPattern(pat, escapeUnprintable); in uset_toPattern()
Drbbiscan.h86 void findSetFor(const UnicodeString &s, RBBINode *node, UnicodeSet *setToAdopt = NULL);
140 UnicodeSet fRuleSets[10]; // Unicode Sets that are needed during
151 UnicodeSet *gRuleSet_rule_char;
152 UnicodeSet *gRuleSet_white_space;
153 UnicodeSet *gRuleSet_name_char;
154 UnicodeSet *gRuleSet_name_start_char;
/external/icu4c/test/intltest/
Dusettest.h95 const UnicodeSet& testSet);
97 … UBool checkPat(const UnicodeString& source, const UnicodeSet& testSet, const UnicodeString& pat);
99 void _testComplement(int32_t a, UnicodeSet&, UnicodeSet&);
101 void _testAdd(int32_t a, int32_t b, UnicodeSet&, UnicodeSet&, UnicodeSet&);
103 void _testRetain(int32_t a, int32_t b, UnicodeSet&, UnicodeSet&, UnicodeSet&);
105 void _testRemove(int32_t a, int32_t b, UnicodeSet&, UnicodeSet&, UnicodeSet&);
107 void _testXor(int32_t a, int32_t b, UnicodeSet&, UnicodeSet&, UnicodeSet&);
113 void checkCanonicalRep(const UnicodeSet& set, const UnicodeString& msg);
118 static UnicodeSet& bitsToSet(int32_t a, UnicodeSet&);
124 static int32_t setToBits(const UnicodeSet& x);
[all …]
Dusettest.cpp36 UnicodeString operator+(const UnicodeString& left, const UnicodeSet& set) { in operator +()
106 UnicodeSet t; in Testj2268()
108 UnicodeSet test(t); in Testj2268()
131 UnicodeSet s(OTHER_TOPATTERN_TESTS[j], ec); in TestToPattern()
159 UnicodeSet* s = new UnicodeSet("[a-z {aa} {ab}]", ec); in TestToPattern()
202 UnicodeSet s; in TestToPattern()
218 UnicodeSet testSet; in toPatternAux()
224 const UnicodeSet& testSet) { in checkPat()
250 const UnicodeSet& testSet, in checkPat()
253 UnicodeSet testSet2(pat, ec); in checkPat()
[all …]
Drbbitst.cpp649 UnicodeSet *breaks = NULL; in TestTrieDict()
679 breaks = new UnicodeSet; in TestTrieDict()
2410 UnicodeSet *fCRLFSet;
2411 UnicodeSet *fControlSet;
2412 UnicodeSet *fExtendSet;
2413 UnicodeSet *fPrependSet;
2414 UnicodeSet *fSpacingSet;
2415 UnicodeSet *fLSet;
2416 UnicodeSet *fVSet;
2417 UnicodeSet *fTSet;
[all …]
Dtransrt.cpp272 void reset(UnicodeSet& set, UBool abb = FALSE, int32_t density = 100);
307 void AbbreviatedUnicodeSetIterator::reset(UnicodeSet& newSet, UBool abb, int32_t density) { in reset()
335 UnicodeSet sourceRange;
336 UnicodeSet targetRange;
337 UnicodeSet toSource;
338 UnicodeSet toTarget;
339 UnicodeSet roundtripExclusionsSet;
342 UnicodeSet badCharacters;
473 UnicodeSet neverOk("[:Other:]", status); in test()
474 UnicodeSet okAnyway("[^[:Letter:]]", status); in test()
[all …]
Ducdtest.cpp293 UnicodeSet alpha(UNICODE_STRING_SIMPLE("[:Alphabetic:]"), errorCode); in TestBinaryValues()
306 UnicodeSet set(pattern, errorCode); in TestBinaryValues()
320 UnicodeSet set(pattern, errorCode); in TestBinaryValues()
352 UnicodeSet set1, set2; in TestConsistency()
381 UnicodeSet syn_pp; in TestPatternProperties()
382 UnicodeSet syn_prop(UNICODE_STRING_SIMPLE("[:Pattern_Syntax:]"), errorCode); in TestPatternProperties()
383 UnicodeSet syn_list( in TestPatternProperties()
388 UnicodeSet ws_pp; in TestPatternProperties()
389 UnicodeSet ws_prop(UNICODE_STRING_SIMPLE("[:Pattern_White_Space:]"), errorCode); in TestPatternProperties()
390UnicodeSet ws_list(UNICODE_STRING_SIMPLE("[\\u0009-\\u000D\\ \\u0085\\u200E\\u200F\\u2028\\u2029]"… in TestPatternProperties()
[all …]
Ducdtest.h52 UnicodeSet derivedProps[30];
55 UBool compareUSets(const UnicodeSet &a, const UnicodeSet &b,
/external/icu4c/i18n/
Ddecfmtst.h23 class UnicodeSet; variable
38 static const UnicodeSet *getSimilarDecimals(UChar32 decimal, UBool strictParse);
40 UnicodeSet *fDotEquivalents;
41 UnicodeSet *fCommaEquivalents;
42 UnicodeSet *fOtherGroupingSeparators;
43 UnicodeSet *fDashEquivalents;
45 UnicodeSet *fStrictDotEquivalents;
46 UnicodeSet *fStrictCommaEquivalents;
47 UnicodeSet *fStrictOtherGroupingSeparators;
48 UnicodeSet *fStrictDashEquivalents;
[all …]
Dregexst.cpp158 … fPropSets[URX_ISWORD_SET] = new UnicodeSet(UnicodeString(TRUE, gIsWordPattern, -1), *status); in RegexStaticSets()
159 … fPropSets[URX_ISSPACE_SET] = new UnicodeSet(UnicodeString(TRUE, gIsSpacePattern, -1), *status); in RegexStaticSets()
160 … fPropSets[URX_GC_EXTEND] = new UnicodeSet(UnicodeString(TRUE, gGC_ExtendPattern, -1), *status); in RegexStaticSets()
161 … fPropSets[URX_GC_CONTROL] = new UnicodeSet(UnicodeString(TRUE, gGC_ControlPattern, -1), *status); in RegexStaticSets()
162 … fPropSets[URX_GC_L] = new UnicodeSet(UnicodeString(TRUE, gGC_LPattern, -1), *status); in RegexStaticSets()
163 … fPropSets[URX_GC_V] = new UnicodeSet(UnicodeString(TRUE, gGC_VPattern, -1), *status); in RegexStaticSets()
164 … fPropSets[URX_GC_T] = new UnicodeSet(UnicodeString(TRUE, gGC_TPattern, -1), *status); in RegexStaticSets()
165 … fPropSets[URX_GC_LV] = new UnicodeSet(UnicodeString(TRUE, gGC_LVPattern, -1), *status); in RegexStaticSets()
166 … fPropSets[URX_GC_LVT] = new UnicodeSet(UnicodeString(TRUE, gGC_LVTPattern, -1), *status); in RegexStaticSets()
191 fPropSets[URX_GC_NORMAL] = new UnicodeSet(0, UnicodeSet::MAX_VALUE); in RegexStaticSets()
[all …]
Ddecfmtst.cpp87 …fDotEquivalents = new UnicodeSet(UnicodeString(TRUE, gDotEquivalentsPattern, -1), … in DecimalFormatStaticSets()
88 …fCommaEquivalents = new UnicodeSet(UnicodeString(TRUE, gCommaEquivalentsPattern, -1),… in DecimalFormatStaticSets()
89 …fOtherGroupingSeparators = new UnicodeSet(UnicodeString(TRUE, gOtherGroupingSeparatorsPatter… in DecimalFormatStaticSets()
90 …fDashEquivalents = new UnicodeSet(UnicodeString(TRUE, gDashEquivalentsPattern, -1), … in DecimalFormatStaticSets()
92 …fStrictDotEquivalents = new UnicodeSet(UnicodeString(TRUE, gStrictDotEquivalentsPattern, … in DecimalFormatStaticSets()
93 …fStrictCommaEquivalents = new UnicodeSet(UnicodeString(TRUE, gStrictCommaEquivalentsPattern… in DecimalFormatStaticSets()
94 …fStrictOtherGroupingSeparators = new UnicodeSet(UnicodeString(TRUE, gStrictOtherGroupingSeparators… in DecimalFormatStaticSets()
95 …fStrictDashEquivalents = new UnicodeSet(UnicodeString(TRUE, gStrictDashEquivalentsPattern,… in DecimalFormatStaticSets()
98 fDefaultGroupingSeparators = new UnicodeSet(*fDotEquivalents); in DecimalFormatStaticSets()
102 fStrictDefaultGroupingSeparators = new UnicodeSet(*fStrictDotEquivalents); in DecimalFormatStaticSets()
[all …]
Dsmpdtfst.h25 class UnicodeSet; variable
40 static UnicodeSet *getIgnorables(UDateFormatField fieldIndex);
43 UnicodeSet *fDateIgnorables;
44 UnicodeSet *fTimeIgnorables;
45 UnicodeSet *fOtherIgnorables;
Dregexst.h29 class UnicodeSet; variable
42 UnicodeSet *fPropSets[URX_LAST_SET]; // The sets for common regex items, e.g. \s
45 UnicodeSet fRuleSets[10]; // Sets used while parsing regexp patterns.
46 UnicodeSet fUnescapeCharSet; // Set of chars handled by unescape when
48 UnicodeSet *fRuleDigitsAlias;
Dalphaindex.cpp59 delete static_cast<UnicodeSet *>(obj); in uhash_deleteUnicodeSet()
83 static void appendUnicodeSetToUVector(UVector &dest, const UnicodeSet &source, UErrorCode &status) { in appendUnicodeSetToUVector()
130 AlphabeticIndex &AlphabeticIndex::addLabels(const UnicodeSet &additions, UErrorCode &status) { in addLabels()
143 UnicodeSet additions; in addLabels()
200 UnicodeSet labelSet; in buildIndex()
210UnicodeSet *targets = static_cast<UnicodeSet *>(uhash_get(alreadyIn_, &itemAlreadyIn)); in buildIndex()
213 targets = new UnicodeSet(); in buildIndex()
286 UnicodeSet lastSet; in buildBucketList()
287 UnicodeSet set; in buildBucketList()
367 void AlphabeticIndex::getIndexExemplars(UnicodeSet &dest, const Locale &locale, UErrorCode &status… in getIndexExemplars()
[all …]
Dregexcmp.cpp91 static inline void addCategory(UnicodeSet *set, int32_t value, UErrorCode& ec) { in addCategory()
92 set->addAll(UnicodeSet().applyIntPropertyValue(UCHAR_GENERAL_CATEGORY_MASK, value, ec)); in addCategory()
270 delete (UnicodeSet *)fSetStack.pop(); in compile()
328 UnicodeSet *s = (UnicodeSet *)fRXPat->fSets->elementAt(i); in compile()
1233 UnicodeSet *theSet = scanProp(); in doParseActions()
1472 UnicodeSet *set = (UnicodeSet *)fSetStack.peek(); in doParseActions()
1479 UnicodeSet *set = (UnicodeSet *)fSetStack.peek(); in doParseActions()
1486 UnicodeSet *set = (UnicodeSet *)fSetStack.peek(); in doParseActions()
1493 UnicodeSet *set = (UnicodeSet *)fSetStack.peek(); in doParseActions()
1494 UnicodeSet SSet(*RegexStaticSets::gStaticSets->fPropSets[URX_ISSPACE_SET]); in doParseActions()
[all …]
Dsmpdtfst.cpp36 fDateIgnorables = new UnicodeSet(UNICODE_STRING("[-,./[:whitespace:]]", 20), *status); in SimpleDateFormatStaticSets()
37 fTimeIgnorables = new UnicodeSet(UNICODE_STRING("[-.:[:whitespace:]]", 19), *status); in SimpleDateFormatStaticSets()
38 fOtherIgnorables = new UnicodeSet(UNICODE_STRING("[:whitespace:]", 14), *status); in SimpleDateFormatStaticSets()
124 UnicodeSet *SimpleDateFormatStaticSets::getIgnorables(UDateFormatField fieldIndex) in getIgnorables()
Drbt_set.h28 class UnicodeSet; variable
153 UnicodeSet& getSourceTargetSet(UnicodeSet& result,
/external/icu4c/i18n/unicode/
Dalphaindex.h75 class UnicodeSet; variable
193 virtual AlphabeticIndex &addLabels(const UnicodeSet &additions, UErrorCode &status);
559 static void getIndexExemplars(UnicodeSet &dest, const Locale &locale, UErrorCode &status);
565 …static UnicodeSet *getScriptSet(UnicodeSet &dest, const UnicodeString &codePoint, UErrorCode &stat…
658 UnicodeSet *initialLabels_; // Initial (unprocessed) set of Labels. Union
666 UnicodeSet *noDistinctSorting_; // As the set of labels is built, strings may
671 UnicodeSet *notAlphabetic_; // As the set of labels is built, strings may
707 static UnicodeSet *ALPHABETIC;
708 static UnicodeSet *CORE_LATIN;
709 static UnicodeSet *ETHIOPIC;
[all …]
/external/icu4c/test/perf/unisetperf/
Dunisetperf.cpp128 UnicodeSet set;
129 UnicodeSet prefrozen;
159 UnicodeSet set; in Contains()
176 const UnicodeSet &set=testcase.set; in call()
192 static int32_t span(const UnicodeSet &set, const UChar *s, int32_t length, UBool tf) { in span()
209 UnicodeSet set; in SpanUTF16()
238 const UnicodeSet &set=testcase.set; in call()
260 UnicodeSet set; in SpanBackUTF16()
289 const UnicodeSet &set=testcase.set; in call()
315 UnicodeSet set; in SpanUTF8()
[all …]

123456