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

Unified Diff: source/i18n/digitlst.h

Issue 2440913002: Update ICU to 58.1
Patch Set: Created 4 years, 2 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/digitinterval.cpp ('k') | source/i18n/digitlst.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/i18n/digitlst.h
diff --git a/source/i18n/digitlst.h b/source/i18n/digitlst.h
index 2557f7038e8bf5c4a92c44d53ecfb03970acd39b..45cb49a64418bd77665029444c4e259b289dbda8 100644
--- a/source/i18n/digitlst.h
+++ b/source/i18n/digitlst.h
@@ -1,3 +1,5 @@
+// Copyright (C) 2016 and later: Unicode, Inc. and others.
+// License & terms of use: http://www.unicode.org/copyright.html
/*
******************************************************************************
*
@@ -267,7 +269,7 @@ public:
* @param source The value to be set. The string must be nul-terminated.
* @param fastpathBits special flags for fast parsing
*/
- void set(const StringPiece &source, UErrorCode &status, uint32_t fastpathBits = 0);
+ void set(StringPiece source, UErrorCode &status, uint32_t fastpathBits = 0);
/**
* Multiply this = this * arg
@@ -477,8 +479,7 @@ private:
} fUnion;
enum EHave {
kNone=0,
- kDouble,
- kInt64
+ kDouble
} fHave;
@@ -494,7 +495,8 @@ private:
static inline void * U_EXPORT2 operator new(size_t size) U_NO_THROW { return ::operator new(size); };
static inline void U_EXPORT2 operator delete(void *ptr ) U_NO_THROW { ::operator delete(ptr); };
#endif
- static char U_EXPORT2 getStrtodDecimalSeparator();
+
+ static double U_EXPORT2 decimalStrToDouble(char *decstr, char **end);
/**
* Placement new for stack usage
@@ -513,10 +515,6 @@ private:
fHave = kDouble;
fUnion.fDouble=d;
}
- inline void internalSetInt64(int64_t d) {
- fHave = kInt64;
- fUnion.fInt64=d;
- }
inline void internalClear() {
fHave = kNone;
}
« no previous file with comments | « source/i18n/digitinterval.cpp ('k') | source/i18n/digitlst.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698