30 class RBBIRuleScanner;
32 class UnicodeSetStringSpan;
34 class RuleCharacterIterator;
283 int32_t bufferCapacity;
297 UnicodeSetStringSpan *stringSpan;
314 inline UBool isBogus(
void)
const;
383 #ifndef U_HIDE_INTERNAL_API
477 virtual int32_t hashCode(
void)
const;
506 inline USet *toUSet();
516 inline const USet * toUSet()
const;
531 inline UBool isFrozen()
const;
597 #ifndef U_HIDE_INTERNAL_API
740 virtual int32_t size(
void)
const;
748 virtual UBool isEmpty(
void)
const;
938 int32_t spanUTF8(
const char *s, int32_t length,
USetSpanCondition spanCondition)
const;
957 int32_t spanBackUTF8(
const char *s, int32_t length,
USetSpanCondition spanCondition)
const;
992 int32_t start, int32_t limit,
1004 int32_t findCodePoint(
UChar32 c)
const;
1025 int32_t indexOf(
UChar32 c)
const;
1036 UChar32 charAt(int32_t index)
const;
1353 virtual int32_t getRangeCount(
void)
const;
1362 virtual UChar32 getRangeStart(int32_t index)
const;
1371 virtual UChar32 getRangeEnd(int32_t index)
const;
1421 int32_t serialize(uint16_t *dest, int32_t destCapacity,
UErrorCode& ec)
const;
1458 friend class USetAccess;
1460 int32_t getStringCount()
const;
1478 friend class RBBIRuleScanner;
1495 void applyPattern(RuleCharacterIterator& chars,
1506 void ensureCapacity(int32_t newLen,
UErrorCode& ec);
1508 void ensureBufferCapacity(int32_t newLen,
UErrorCode& ec);
1510 void swapBuffers(
void);
1515 UBool escapeUnprintable)
const;
1518 UBool escapeUnprintable)
const;
1528 void exclusiveOr(
const UChar32* other, int32_t otherLen, int8_t polarity);
1530 void add(
const UChar32* other, int32_t otherLen, int8_t polarity);
1532 void retain(
const UChar32* other, int32_t otherLen, int8_t polarity);
1542 static UBool resemblesPropertyPattern(RuleCharacterIterator& chars,
1588 void applyPropertyPattern(RuleCharacterIterator& chars,
1599 typedef UBool (*Filter)(
UChar32 codePoint,
void* context);
1610 void applyFilter(Filter filter,
1622 void releasePattern();
1633 inline UBool UnicodeSet::isFrozen()
const {
1638 return !containsNone(start, end);
1642 return !containsNone(s);
1646 return !containsNone(s);
1649 inline UBool UnicodeSet::isBogus()
const {
1650 return (
UBool)(fFlags & kIsBogus);
1658 return reinterpret_cast<const UnicodeSet *
>(uset);
1661 inline USet *UnicodeSet::toUSet() {
1662 return reinterpret_cast<USet *
>(
this);
1665 inline const USet *UnicodeSet::toUSet()
const {
1666 return reinterpret_cast<const USet *
>(
this);
1670 int32_t sLength=s.
length();
1673 }
else if(start>sLength) {
1676 return start+span(s.
getBuffer()+start, sLength-start, spanCondition);
1680 int32_t sLength=s.
length();
1683 }
else if(limit>sLength) {
1686 return spanBack(s.
getBuffer(), limit, spanCondition);