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

Unified Diff: source/i18n/decimalformatpattern.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/decimalformatpattern.h ('k') | source/i18n/decimalformatpatternimpl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/i18n/decimalformatpattern.cpp
diff --git a/source/i18n/decimalformatpattern.cpp b/source/i18n/decimalformatpattern.cpp
index a0ac40a25d1d42b615bb0f090432ff84e4165897..317f842fd57740e35f1f8d534afa4ae78e1f31ed 100644
--- a/source/i18n/decimalformatpattern.cpp
+++ b/source/i18n/decimalformatpattern.cpp
@@ -1,6 +1,6 @@
/*
*******************************************************************************
-* Copyright (C) 1997-2014, International Business Machines Corporation and *
+* Copyright (C) 1997-2015, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
@@ -13,6 +13,8 @@
#include "unicode/dcfmtsym.h"
#include "unicode/format.h"
#include "unicode/utf16.h"
+#include "decimalformatpatternimpl.h"
+
#ifdef FMT_DEBUG
#define debug(x) printf("%s:%d: %s\n", __FILE__,__LINE__, x);
@@ -20,23 +22,6 @@
#define debug(x)
#endif
-#define kPatternZeroDigit ((UChar)0x0030) /*'0'*/
-#define kPatternSignificantDigit ((UChar)0x0040) /*'@'*/
-#define kPatternGroupingSeparator ((UChar)0x002C) /*','*/
-#define kPatternDecimalSeparator ((UChar)0x002E) /*'.'*/
-#define kPatternPerMill ((UChar)0x2030)
-#define kPatternPercent ((UChar)0x0025) /*'%'*/
-#define kPatternDigit ((UChar)0x0023) /*'#'*/
-#define kPatternSeparator ((UChar)0x003B) /*';'*/
-#define kPatternExponent ((UChar)0x0045) /*'E'*/
-#define kPatternPlus ((UChar)0x002B) /*'+'*/
-#define kPatternMinus ((UChar)0x002D) /*'-'*/
-#define kPatternPadEscape ((UChar)0x002A) /*'*'*/
-#define kQuote ((UChar)0x0027) /*'\''*/
-
-#define kCurrencySign ((UChar)0x00A4)
-#define kDefaultPad ((UChar)0x0020) /* */
-
U_NAMESPACE_BEGIN
// TODO: Travis Keep: Copied from numfmt.cpp
@@ -91,7 +76,7 @@ DecimalFormatPattern::DecimalFormatPattern()
fFormatWidth(0),
fRoundingIncrementUsed(FALSE),
fRoundingIncrement(),
- fPad(kPatternPadEscape),
+ fPad(kDefaultPad),
fNegPatternsBogus(TRUE),
fPosPatternsBogus(TRUE),
fNegPrefixPattern(),
@@ -651,6 +636,15 @@ DecimalFormatPatternParser::applyPatternWithoutExpandAffix(
out.fNegPrefixPattern.append(kQuote).append(kPatternMinus)
.append(out.fPosPrefixPattern);
}
+ // TODO: Deprecate/Remove out.fNegSuffixPattern and 3 other fields.
+ AffixPattern::parseAffixString(
+ out.fNegSuffixPattern, out.fNegSuffixAffix, status);
+ AffixPattern::parseAffixString(
+ out.fPosSuffixPattern, out.fPosSuffixAffix, status);
+ AffixPattern::parseAffixString(
+ out.fNegPrefixPattern, out.fNegPrefixAffix, status);
+ AffixPattern::parseAffixString(
+ out.fPosPrefixPattern, out.fPosPrefixAffix, status);
}
U_NAMESPACE_END
« no previous file with comments | « source/i18n/decimalformatpattern.h ('k') | source/i18n/decimalformatpatternimpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698