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

Unified Diff: source/i18n/dcfmtimp.h

Issue 845603002: Update ICU to 54.1 step 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/icu.git@master
Patch Set: remove unusued directories Created 5 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/datefmt.cpp ('k') | source/i18n/dcfmtsym.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/i18n/dcfmtimp.h
diff --git a/source/i18n/dcfmtimp.h b/source/i18n/dcfmtimp.h
index 4256fd07618de278029c5b606467652c060efca0..a8279479608ddc1dc76dcb7a24be16fa6df1e3d7 100644
--- a/source/i18n/dcfmtimp.h
+++ b/source/i18n/dcfmtimp.h
@@ -1,6 +1,6 @@
/*
********************************************************************************
-* Copyright (C) 2012, International Business Machines
+* Copyright (C) 2012-2014, International Business Machines
* Corporation and others. All Rights Reserved.
********************************************************************************/
@@ -17,7 +17,8 @@ U_NAMESPACE_BEGIN
enum EDecimalFormatFastpathStatus {
kFastpathNO = 0,
kFastpathYES = 1,
- kFastpathUNKNOWN = 2 /* not yet set */
+ kFastpathUNKNOWN = 2, /* not yet set */
+ kFastpathMAYBE = 3 /* depends on value being formatted. */
};
/**
@@ -26,7 +27,12 @@ enum EDecimalFormatFastpathStatus {
struct DecimalFormatInternal {
uint8_t fFastFormatStatus;
uint8_t fFastParseStatus;
-
+
+ DecimalFormatInternal &operator=(const DecimalFormatInternal& rhs) {
+ fFastParseStatus = rhs.fFastParseStatus;
+ fFastFormatStatus = rhs.fFastFormatStatus;
+ return *this;
+ }
#ifdef FMT_DEBUG
void dump() const {
printf("DecimalFormatInternal: fFastFormatStatus=%c, fFastParseStatus=%c\n",
@@ -34,7 +40,7 @@ struct DecimalFormatInternal {
"NY?"[(int)fFastParseStatus&3]
);
}
-#endif
+#endif
};
« no previous file with comments | « source/i18n/datefmt.cpp ('k') | source/i18n/dcfmtsym.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698