Lines Matching defs:UnicodeSet
42 * <p>The UnicodeSet class is not designed to be subclassed.
44 * <p><code>UnicodeSet</code> supports two APIs. The first is the
46 * a <code>UnicodeSet</code> object. It conforms to Java 2's
48 * <code>UnicodeSet</code> does not actually implement that
52 * <code>UnicodeSet</code> instead of a <code>Collection</code>. The
69 * attributes of a <code>UnicodeSet</code> at once, based on a
121 * for UnicodeSet at
122 * <a href="http://icu-project.org/userguide/unicodeSet.html">
123 * http://icu-project.org/userguide/unicodeSet.html</a>.
176 * <p><b>Warning</b>: you cannot add an empty string ("") to a UnicodeSet.</p>
265 * - Most UnicodeSet methods do not take a UErrorCode parameter because
270 * Instead, such methods set the UnicodeSet into a "bogus" state
276 class U_COMMON_API UnicodeSet : public UnicodeFilter {
317 * Make this UnicodeSet object invalid.
323 * This utility function is used throughout the UnicodeSet
324 * implementation to indicate that a UnicodeSet operation failed,
338 * Minimum value that can be stored in a UnicodeSet.
344 * Maximum value that can be stored in a UnicodeSet.
360 UnicodeSet();
370 UnicodeSet(UChar32 start, UChar32 end);
380 UnicodeSet(const UnicodeString& pattern,
396 UnicodeSet(const UnicodeString& pattern,
415 UnicodeSet(const UnicodeString& pattern, ParsePosition& pos,
421 * Constructs a set that is identical to the given UnicodeSet.
424 UnicodeSet(const UnicodeSet& o);
430 virtual ~UnicodeSet();
437 UnicodeSet& operator=(const UnicodeSet& o);
450 virtual UBool operator==(const UnicodeSet& o) const;
457 UBool operator!=(const UnicodeSet& o) const;
480 * Get a UnicodeSet pointer from a USet
482 * @param uset a USet (the ICU plain C type for UnicodeSet)
483 * @return the corresponding UnicodeSet pointer.
487 inline static UnicodeSet *fromUSet(USet *uset);
490 * Get a UnicodeSet pointer from a const USet
492 * @param uset a const USet (the ICU plain C type for UnicodeSet)
493 * @return the corresponding UnicodeSet pointer.
497 inline static const UnicodeSet *fromUSet(const USet *uset);
500 * Produce a USet * pointer for this UnicodeSet.
501 * USet is the plain C type for UnicodeSet
503 * @return a USet pointer for this UnicodeSet
510 * Produce a const USet * pointer for this UnicodeSet.
511 * USet is the plain C type for UnicodeSet
513 * @return a const USet pointer for this UnicodeSet
572 UnicodeSet& set(UChar32 start, UChar32 end);
576 * to be the start of a UnicodeSet pattern.
594 UnicodeSet& applyPattern(const UnicodeString& pattern,
614 UnicodeSet& applyPattern(const UnicodeString& pattern,
651 UnicodeSet& applyPattern(const UnicodeString& pattern,
659 * calling this function is passed to a UnicodeSet constructor, it
695 UnicodeSet& applyIntPropertyValue(UProperty prop,
728 UnicodeSet& applyPropertyAlias(const UnicodeString& prop,
785 virtual UBool containsAll(const UnicodeSet& c) const;
813 UBool containsNone(const UnicodeSet& c) const;
841 inline UBool containsSome(const UnicodeSet& s) const;
1015 virtual void addMatchSetTo(UnicodeSet& toUnionTo) const;
1052 virtual UnicodeSet& add(UChar32 start, UChar32 end);
1061 UnicodeSet& add(UChar32 c);
1068 * <br><b>Warning: you cannot add an empty string ("") to a UnicodeSet.</b>
1074 UnicodeSet& add(const UnicodeString& s);
1095 UnicodeSet& addAll(const UnicodeString& s);
1105 UnicodeSet& retainAll(const UnicodeString& s);
1115 UnicodeSet& complementAll(const UnicodeString& s);
1125 UnicodeSet& removeAll(const UnicodeString& s);
1129 * <br><b>Warning: you cannot add an empty string ("") to a UnicodeSet.</b>
1135 static UnicodeSet* U_EXPORT2 createFrom(const UnicodeString& s);
1145 static UnicodeSet* U_EXPORT2 createFromAll(const UnicodeString& s);
1160 virtual UnicodeSet& retain(UChar32 start, UChar32 end);
1168 UnicodeSet& retain(UChar32 c);
1183 virtual UnicodeSet& remove(UChar32 start, UChar32 end);
1192 UnicodeSet& remove(UChar32 c);
1203 UnicodeSet& remove(const UnicodeString& s);
1212 virtual UnicodeSet& complement(void);
1228 virtual UnicodeSet& complement(UChar32 start, UChar32 end);
1237 UnicodeSet
1243 * <br><b>Warning: you cannot add an empty string ("") to a UnicodeSet.</b>
1249 UnicodeSet& complement(const UnicodeString& s);
1263 virtual UnicodeSet& addAll(const UnicodeSet& c);
1276 virtual UnicodeSet& retainAll(const UnicodeSet& c);
1289 virtual UnicodeSet& removeAll(const UnicodeSet& c);
1301 virtual UnicodeSet& complementAll(const UnicodeSet& c);
1309 virtual UnicodeSet& clear(void);
1336 UnicodeSet& closeOver(int32_t attribute);
1344 virtual UnicodeSet &removeAllStrings();
1429 virtual UnicodeSet& compact();
1484 UnicodeSet(const UnicodeSet& o, UBool /* asThawed */);
1499 UnicodeSet& (UnicodeSet::*caseClosure)(int32_t attribute),
1547 * and set this UnicodeSet to the result.
1584 UnicodeSet& applyPropertyPattern(const UnicodeString& pattern,
1593 static const UnicodeSet* getInclusions(int32_t src, UErrorCode &status);
1597 * included in the UnicodeSet being constructed.
1602 * Given a filter, set this UnicodeSet to the code points
1629 inline UBool UnicodeSet::operator!=(const UnicodeSet& o) const {
1633 inline UBool UnicodeSet::isFrozen() const {
1637 inline UBool UnicodeSet::containsSome(UChar32 start, UChar32 end) const {
1641 inline UBool UnicodeSet::containsSome(const UnicodeSet& s) const {
1645 inline UBool UnicodeSet::containsSome(const UnicodeString& s) const {
1649 inline UBool UnicodeSet::isBogus() const {
1653 inline UnicodeSet *UnicodeSet::fromUSet(USet *uset) {
1654 return reinterpret_cast<UnicodeSet *>(uset);
1657 inline const UnicodeSet *UnicodeSet::fromUSet(const USet *uset) {
1658 return reinterpret_cast<const UnicodeSet *>(uset);
1661 inline USet *UnicodeSet::toUSet() {
1665 inline const USet *UnicodeSet::toUSet() const {
1669 inline int32_t UnicodeSet::span(const UnicodeString &s, int32_t start, USetSpanCondition spanCondition) const {
1679 inline int32_t UnicodeSet::spanBack(const UnicodeString &s, int32_t limit, USetSpanCondition spanCondition) const {