Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Unified Diff: source/i18n/unum.cpp

Issue 1621843002: ICU 56 update step 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/icu.git@561
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « source/i18n/unicode/utrans.h ('k') | source/i18n/uregex.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « source/i18n/unicode/utrans.h ('k') | source/i18n/uregex.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698