Logo Search packages:      
Sourcecode: icu version File versions

void DateIntervalFormat::setFallbackPattern ( UCalendarDateFields  field,
const UnicodeString skeleton,
UErrorCode status 
) [private]

Set fall back interval pattern given a calendar field, a skeleton, and a date time pattern generator.

Parameters:
field the largest different calendar field
skeleton a skeleton
status output param set to success/failure code on exit

For internal use only.

ICU 4.0

Definition at line 961 of file dtitvfmt.cpp.

References fDtpng, fInfo, DateTimePatternGenerator::getBestPattern(), DateIntervalInfo::getDefaultOrder(), NULL, setPatternInfo(), and U_FAILURE.

Referenced by initializePattern().

                                                           {
    if ( U_FAILURE(status) ) {
        return;
    }
    UnicodeString pattern = fDtpng->getBestPattern(skeleton, status);
    if ( U_FAILURE(status) ) {
        return;
    }
    setPatternInfo(field, NULL, &pattern, fInfo->getDefaultOrder());
}


Generated by  Doxygen 1.6.0   Back to index