28 class UnicodeSetStringSpan;
30 class RuleCharacterIterator;
293 UnicodeSetStringSpan *stringSpan;
310 inline UBool isBogus(
void)
const;
471 virtual int32_t hashCode(
void)
const;
500 inline USet *toUSet();
510 inline const USet * toUSet()
const;
525 inline UBool isFrozen()
const;
732 virtual int32_t size(
void)
const;
740 virtual UBool isEmpty(
void)
const;
1315 virtual int32_t getRangeCount(
void)
const;
1420 friend class USetAccess;
1422 int32_t getStringCount()
const;
1451 void applyPattern(RuleCharacterIterator& chars,
1465 void swapBuffers(
void);
1470 UBool escapeUnprintable)
const;
1473 UBool escapeUnprintable)
const;
1497 static UBool resemblesPropertyPattern(RuleCharacterIterator& chars,
1542 void applyPropertyPattern(RuleCharacterIterator& chars,
1552 typedef UBool (*Filter)(
UChar32 codePoint,
void* context);
1563 void applyFilter(Filter filter,
1575 void releasePattern();
1603 return (
UBool)(fFlags & kIsBogus);
1611 return reinterpret_cast<const UnicodeSet *
>(uset);
1615 return reinterpret_cast<USet *
>(
this);
1619 return reinterpret_cast<const USet *
>(
this);
static UClassID getStaticClassID()
ICU "poor man's RTTI", returns a UClassID for this class.
virtual UBool matchesIndexValue(uint8_t v) const =0
Returns TRUE if this matcher will match a character c, where c & 0xFF == v, at offset, in the forward direction (with limit > offset).
A mutable set of Unicode characters and multicharacter strings.
UMatchDegree
Constants returned by UnicodeMatcher::matches() indicating the degree of match.
UBool containsSome(UChar32 start, UChar32 end) const
Returns true if this set contains one or more of the characters in the given range.
An interface that defines both lookup protocol and parsing of symbolic names.
Replaceable is an abstract base class representing a string of characters that supports the replaceme...
virtual UBool operator==(const UnicodeSet &o) const
Compares the specified object with this set for equality.
virtual UMatchDegree matches(const Replaceable &text, int32_t &offset, int32_t limit, UBool incremental)
Implement UnicodeMatcher API.
unsigned char uint8_t
Define 64 bit limits.
unsigned int uint32_t
Define 64 bit limits.
virtual UnicodeString & toPattern(UnicodeString &result, UBool escapeUnprintable=FALSE) const =0
Returns a string representation of this matcher.
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.
virtual void addMatchSetTo(UnicodeSet &toUnionTo) const =0
Union the set of all characters that may be matched by this object into the given set...
static UnicodeSet * fromUSet(USet *uset)
Get a UnicodeSet pointer from a USet.
ParsePosition is a simple class used by Format and its subclasses to keep track of the current positi...
UBool isBogus(void) const
Determine if this object contains a valid set.
UnicodeFilter defines a protocol for selecting a subset of the full range (U+0000 to U+10FFFF) of Uni...
int32_t UChar32
Define UChar32 as a type for single Unicode code points.
#define NULL
Define NULL if necessary, to 0 for C++ and to ((void *)0) for C.
USet * toUSet()
Produce a USet * pointer for this UnicodeSet.
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
UBool isFrozen() const
Determines whether the set has been frozen (made immutable) or not.
USetSpanCondition
Argument values for whether span() and similar functions continue while the current character is cont...
UnicodeFunctor is an abstract base class for objects that perform match and/or replace operations on ...
uint16_t UChar
Define UChar to be wchar_t if that is 16 bits wide; always assumed to be unsigned.
#define U_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API If the compiler doesn't support namespaces...
signed char int8_t
Define 64 bit limits.
UProperty
Selection constants for Unicode properties.
UnicodeSetIterator iterates over the contents of a UnicodeSet.
void * UClassID
UClassID is used to identify classes without using RTTI, since RTTI is not yet supported by all C++ c...
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers...
UBool containsNone(UChar32 start, UChar32 end) const
Returns true if this set contains none of the characters of the given range.
virtual UClassID getDynamicClassID() const =0
ICU "poor man's RTTI", returns a UClassID for the actual class.
unsigned short uint16_t
Define 64 bit limits.
#define FALSE
The FALSE value of a UBool.
#define U_COMMON_API
Set to export library symbols from inside the common library, and to import them from outside...
UBool operator!=(const UnicodeSet &o) const
Compares the specified object with this set for equality.
virtual UnicodeFunctor * clone() const =0
Return a copy of this object.
signed int int32_t
Define 64 bit limits.
int8_t UBool
The ICU boolean type.
virtual UBool contains(UChar32 c) const =0
Returns true for characters that are in the selected subset.