]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/i18n/uatimeunitformat.cpp
ICU-62141.0.1.tar.gz
[apple/icu.git] / icuSources / i18n / uatimeunitformat.cpp
index f8c40b9adb3791334f8efe72fc02f6f8be876568..5bb34cac67ae29ade100392ddb6de1d464a88fa9 100644 (file)
@@ -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;