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

DateIntervalInfo & DateIntervalInfo::operator= ( const DateIntervalInfo dtitvinf  ) 

Assignment operator ICU 4.0

Definition at line 132 of file dtitvinf.cpp.

References copyHash(), deleteHash(), fFallbackIntervalPattern, fFirstDateInPtnIsLaterDate, fIntervalPatterns, initHash(), U_FAILURE, and U_ZERO_ERROR.

                                                            {
    if ( this == &dtitvinf ) {
        return *this;
    }
    
    UErrorCode status = U_ZERO_ERROR;
    deleteHash(fIntervalPatterns);
    fIntervalPatterns = initHash(status);
    copyHash(dtitvinf.fIntervalPatterns, fIntervalPatterns, status);
    if ( U_FAILURE(status) ) {
        return *this;
    } 

    fFallbackIntervalPattern = dtitvinf.fFallbackIntervalPattern;
    fFirstDateInPtnIsLaterDate = dtitvinf.fFirstDateInPtnIsLaterDate;
    return *this;
}


Generated by  Doxygen 1.6.0   Back to index