Index: source/i18n/unum.cpp |
diff --git a/source/i18n/unum.cpp b/source/i18n/unum.cpp |
index 802caaddd8910a2b8b7312159f9da243a0080068..5941675a4121a90d2b5bf07899365bcc616b87fb 100644 |
--- a/source/i18n/unum.cpp |
+++ b/source/i18n/unum.cpp |
@@ -1,6 +1,6 @@ |
/* |
******************************************************************************* |
-* Copyright (C) 1996-2014, International Business Machines |
+* Copyright (C) 1996-2015, International Business Machines |
* Corporation and others. All Rights Reserved. |
******************************************************************************* |
* Modification History: |
@@ -20,6 +20,7 @@ |
#include "unicode/numfmt.h" |
#include "unicode/decimfmt.h" |
#include "unicode/rbnf.h" |
+#include "unicode/compactdecimalformat.h" |
#include "unicode/ustring.h" |
#include "unicode/fmtable.h" |
#include "unicode/dcfmtsym.h" |
@@ -56,6 +57,7 @@ unum_open( UNumberFormatStyle style, |
case UNUM_CURRENCY_PLURAL: |
case UNUM_CURRENCY_ACCOUNTING: |
case UNUM_CASH_CURRENCY: |
+ case UNUM_CURRENCY_STANDARD: |
retVal = NumberFormat::createInstance(Locale(locale), style, *status); |
break; |
@@ -114,6 +116,14 @@ unum_open( UNumberFormatStyle style, |
break; |
#endif |
+ case UNUM_DECIMAL_COMPACT_SHORT: |
+ retVal = CompactDecimalFormat::createInstance(Locale(locale), UNUM_SHORT, *status); |
+ break; |
+ |
+ case UNUM_DECIMAL_COMPACT_LONG: |
+ retVal = CompactDecimalFormat::createInstance(Locale(locale), UNUM_LONG, *status); |
+ break; |
+ |
default: |
*status = U_UNSUPPORTED_ERROR; |
return NULL; |