X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/efa1e6592fb03ce23b15276b2b91d885a3ee7da5..57a6839dcb3bba09e8228b822b290604668416fe:/icuSources/i18n/dtitvfmt.cpp diff --git a/icuSources/i18n/dtitvfmt.cpp b/icuSources/i18n/dtitvfmt.cpp index e09a3700..30f279c8 100644 --- a/icuSources/i18n/dtitvfmt.cpp +++ b/icuSources/i18n/dtitvfmt.cpp @@ -1,5 +1,5 @@ /******************************************************************************* -* Copyright (C) 2008-2012, International Business Machines Corporation and +* Copyright (C) 2008-2014, International Business Machines Corporation and * others. All Rights Reserved. ******************************************************************************* * @@ -851,6 +851,8 @@ DateIntervalFormat::getDateTimeSkeleton(const UnicodeString& skeleton, case LOW_G: case LOW_E: case LOW_C: + case CAP_U: + case LOW_R: normalizedDateSkeleton.append(ch); dateSkeleton.append(ch); break; @@ -894,7 +896,9 @@ DateIntervalFormat::getDateTimeSkeleton(const UnicodeString& skeleton, /* generate normalized form for date*/ if ( yCount != 0 ) { - normalizedDateSkeleton.append(LOW_Y); + for (i = 0; i < yCount; ++i) { + normalizedDateSkeleton.append(LOW_Y); + } } if ( MCount != 0 ) { if ( MCount < 3 ) { @@ -1499,7 +1503,10 @@ DateIntervalFormat::fgCalendarFieldToPatternLetter[] = /*wWd*/ LOW_W, CAP_W, LOW_D, /*DEF*/ CAP_D, CAP_E, CAP_F, /*ahH*/ LOW_A, LOW_H, CAP_H, - /*m..*/ LOW_M, + /*msS*/ LOW_M, LOW_S, CAP_S, // MINUTE, SECOND, MILLISECOND + /*z.Y*/ LOW_Z, SPACE, CAP_Y, // ZONE_OFFSET, DST_OFFSET, YEAR_WOY, + /*eug*/ LOW_E, LOW_U, LOW_G, // DOW_LOCAL, EXTENDED_YEAR, JULIAN_DAY, + /*A..*/ CAP_A, SPACE, SPACE, // MILLISECONDS_IN_DAY, IS_LEAP_MONTH, FIELD_COUNT };