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

Hashtable * DateIntervalInfo::initHash ( UErrorCode status  )  [private]

initialize hash table (of type fIntervalPatterns).

Parameters:
status output param set to success/failure code on exit
Returns:
hash table initialized

For internal use only.

ICU 4.0

Definition at line 597 of file dtitvinf.cpp.

References dtitvinfHashTableValueComparator, NULL, Hashtable::setValueCompartor(), TRUE, U_FAILURE, and U_MEMORY_ALLOCATION_ERROR.

Referenced by DateIntervalInfo(), initializeData(), and operator=().

                                             {
    if ( U_FAILURE(status) ) {
        return NULL;
    }
    Hashtable* hTable;
    if ( (hTable = new Hashtable(TRUE, status)) == NULL ) {
        status = U_MEMORY_ALLOCATION_ERROR;
        return NULL;
    }
    hTable->setValueCompartor(dtitvinfHashTableValueComparator);
    return hTable;
}


Generated by  Doxygen 1.6.0   Back to index