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

Unified Diff: source/i18n/nfsubs.h

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/nfrule.cpp ('k') | source/i18n/nfsubs.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/i18n/nfsubs.h
diff --git a/source/i18n/nfsubs.h b/source/i18n/nfsubs.h
index c32164c551a399ff61ceafc0f61a8d4664d33e83..1097ba99b0f2c1a024b741c90d570da43f9cc5d5 100644
--- a/source/i18n/nfsubs.h
+++ b/source/i18n/nfsubs.h
@@ -1,6 +1,6 @@
/*
******************************************************************************
-* Copyright (C) 1997-2014, International Business Machines
+* Copyright (C) 1997-2015, International Business Machines
* Corporation and others. All Rights Reserved.
******************************************************************************
* file name: nfsubs.h
@@ -32,12 +32,11 @@ U_NAMESPACE_BEGIN
class NFSubstitution : public UObject {
int32_t pos;
const NFRuleSet* ruleSet;
- const DecimalFormat* numberFormat;
+ DecimalFormat* numberFormat;
protected:
NFSubstitution(int32_t pos,
const NFRuleSet* ruleSet,
- const RuleBasedNumberFormat* rbnf,
const UnicodeString& description,
UErrorCode& status);
@@ -98,6 +97,8 @@ public:
*/
virtual void toString(UnicodeString& result) const;
+ void setDecimalFormatSymbols(const DecimalFormatSymbols &newSymbols, UErrorCode& status);
+
//-----------------------------------------------------------------------
// formatting
//-----------------------------------------------------------------------
@@ -112,7 +113,7 @@ public:
* rule text begins (this value is added to this substitution's
* position to determine exactly where to insert the new text)
*/
- virtual void doSubstitution(int64_t number, UnicodeString& toInsertInto, int32_t pos, UErrorCode& status) const;
+ virtual void doSubstitution(int64_t number, UnicodeString& toInsertInto, int32_t pos, int32_t recursionCount, UErrorCode& status) const;
/**
* Performs a mathematical operation on the number, formats it using
@@ -124,7 +125,7 @@ public:
* rule text begins (this value is added to this substitution's
* position to determine exactly where to insert the new text)
*/
- virtual void doSubstitution(double number, UnicodeString& toInsertInto, int32_t pos, UErrorCode& status) const;
+ virtual void doSubstitution(double number, UnicodeString& toInsertInto, int32_t pos, int32_t recursionCount, UErrorCode& status) const;
protected:
/**
@@ -233,14 +234,6 @@ public:
virtual UChar tokenChar() const = 0;
/**
- * Returns true if this is a null substitution. (We didn't do this
- * with instanceof partially because it causes source files to
- * proliferate and partially because we have to port this to C++.)
- * @return true if this object is an instance of NullSubstitution
- */
- virtual UBool isNullSubstitution() const;
-
- /**
* Returns true if this is a modulus substitution. (We didn't do this
* with instanceof partially because it causes source files to
* proliferate and partially because we have to port this to C++.)
« no previous file with comments | « source/i18n/nfrule.cpp ('k') | source/i18n/nfsubs.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698