Logo Search packages:      
Sourcecode: icu version File versions  Download package

UnicodeSet & UnicodeSet::clear ( void   )  [virtual]

Removes all of the elements from this set. This set will be empty after this call returns. A frozen set will not be modified. ICU 2.0

Removes all of the elements from this set. This set will be empty after this call returns.

Definition at line 1384 of file uniset.cpp.

References isFrozen(), NULL, releasePattern(), and UVector::removeAllElements().

Referenced by applyFilter(), applyPattern(), applyPropertyAlias(), UnicodeSetTest::bitsToSet(), TransliterationRuleSet::getSourceTargetSet(), Transliterator::getTargetSet(), CompoundTransliterator::getTargetSet(), Transliterator::handleGetSourceSet(), CompoundTransliterator::handleGetSourceSet(), retain(), set(), setToBogus(), UnicodeSetTest::TestCloseOver(), UnicodeSetTest::TestToPattern(), and uspoof_check().

                                  {
    if (isFrozen()) {
        return *this;
    }
    if (list != NULL) {
        list[0] = UNICODESET_HIGH;
    }
    len = 1;
    releasePattern();
    if (strings != NULL) {
        strings->removeAllElements();
    }
    if (list != NULL && strings != NULL) {
        // Remove bogus
        fFlags = 0;
    }
    return *this;
}


Generated by  Doxygen 1.6.0   Back to index