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

U_STABLE void U_EXPORT2 uset_freeze ( USet set  ) 

Freeze the set (make it immutable). Once frozen, it cannot be unfrozen and is therefore thread-safe until it is deleted. See the ICU4J Freezable interface for details. Freezing the set may also make some operations faster, for example uset_contains() and uset_span(). A frozen set will not be modified. (It remains frozen.)

Parameters:
set the set
Returns:
the same set, now frozen
See also:
uset_isFrozen

uset_cloneAsThawed ICU 3.8

Definition at line 57 of file uset.cpp.

                       {
    ((UnicodeSet*) set)->UnicodeSet::freeze();
}


Generated by  Doxygen 1.6.0   Back to index