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

U_STABLE void U_EXPORT2 uenum_close ( UEnumeration en )

Disposes of resources in use by the iterator. If en is NULL, does nothing. After this call, any char* or UChar* pointer returned by uenum_unext() or uenum_next() is invalid.

Parameters:
enUEnumeration structure pointer ICU 2.2

Definition at line 57 of file uenum.c.

References UEnumeration::close, and NULL.

{
    if (en) {
        if (en->close != NULL) {
            if (en->baseContext) {
                uprv_free(en->baseContext);
            }
            en->close(en);
        } else { /* this seems dangerous, but we better kill the object */
            uprv_free(en);
        }
    }
}

Generated by  Doxygen 1.6.0   Back to index