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

UnicodeSet::UnicodeSet (  ) 

Constructs an empty set. ICU 2.0

Constructs an empty set.

Definition at line 143 of file uniset.cpp.

References allocateStrings(), NULL, setToBogus(), U_FAILURE, and U_ZERO_ERROR.

Referenced by clone(), cloneAsThawed(), createFrom(), and createFromAll().

                       :
    len(1), capacity(1 + START_EXTRA), list(0), bmpSet(0), buffer(0),
    bufferCapacity(0), patLen(0), pat(NULL), strings(NULL), stringSpan(NULL),
    fFlags(0)
{
    UErrorCode status = U_ZERO_ERROR;
    allocateStrings(status);
    if (U_FAILURE(status)) {
        return;
    }
    list = (UChar32*) uprv_malloc(sizeof(UChar32) * capacity);
    if(list!=NULL){
        list[0] = UNICODESET_HIGH;
    } else { // If memory allocation failed, set to bogus state.
        setToBogus();
        return;
    }
    _dbgct(this);
}


Generated by  Doxygen 1.6.0   Back to index