X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/b331163bffd790ced0e88b73f44f86d49ccc48a5..249c4c5ea9376c24572daf9c2effa7484a282f14:/icuSources/i18n/uatimeunitformat.cpp diff --git a/icuSources/i18n/uatimeunitformat.cpp b/icuSources/i18n/uatimeunitformat.cpp index f8c40b9a..5bb34cac 100644 --- a/icuSources/i18n/uatimeunitformat.cpp +++ b/icuSources/i18n/uatimeunitformat.cpp @@ -18,6 +18,7 @@ #include "unicode/unistr.h" #include "unicode/unum.h" #include "unicode/ures.h" +#include "unicode/ustring.h" #include "ureslocs.h" #include "uresimp.h" #include "ustr_imp.h" @@ -51,6 +52,8 @@ uatmufmt_openWithNumberFormat(const char* locale, mfWidth = UMEASFMT_WIDTH_SHORT; break; case UATIMEUNITSTYLE_NARROW: mfWidth = UMEASFMT_WIDTH_NARROW; break; + case UATIMEUNITSTYLE_SHORTER: + mfWidth = UMEASFMT_WIDTH_SHORTER; break; default: *status = U_ILLEGAL_ARGUMENT_ERROR; return NULL; } @@ -195,6 +198,7 @@ uatmufmt_getListPattern(const char* locale, case UATIMEUNITSTYLE_FULL: { styleKey = "unit"; break; } case UATIMEUNITSTYLE_ABBREVIATED: { styleKey = "unit-short"; break; } case UATIMEUNITSTYLE_NARROW: { styleKey = "unit-narrow"; break; } + case UATIMEUNITSTYLE_SHORTER: { styleKey = "unit-narrow"; break; } default: { *status = U_ILLEGAL_ARGUMENT_ERROR; return 0; } } const char* typeKey = NULL;