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

void UnicodeSet::setToBogus (  ) 

Make this UnicodeSet object invalid. The string will test TRUE with isBogus().

A bogus set has no value. It is different from an empty set. It can be used to indicate that no set value is available.

This utility function is used throughout the UnicodeSet implementation to indicate that a UnicodeSet operation failed, and may be used in other functions, especially but not exclusively when such functions do not take a UErrorCode for simplicity.

See also:
isBogus() ICU 4.0

Definition at line 1617 of file uniset.cpp.

References clear().

Referenced by _add(), freeze(), operator=(), and UnicodeSet().

    clear(); // Remove everything in the set.
    fFlags = kIsBogus;

Generated by  Doxygen 1.6.0   Back to index