X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/46f4442e9a5a4f3b98b7c1083586332f6a8a99a4..a0b4f637ba1a6c3c5651b61a69303b029bacf7d3:/icuSources/i18n/nfsubs.h diff --git a/icuSources/i18n/nfsubs.h b/icuSources/i18n/nfsubs.h index 644b4b2f..f66b7300 100644 --- a/icuSources/i18n/nfsubs.h +++ b/icuSources/i18n/nfsubs.h @@ -1,6 +1,6 @@ /* ****************************************************************************** -* Copyright (C) 1997-2007, International Business Machines +* Copyright (C) 1997-2014, International Business Machines * Corporation and others. All Rights Reserved. ****************************************************************************** * file name: nfsubs.h @@ -112,7 +112,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) const; + virtual void doSubstitution(int64_t number, UnicodeString& toInsertInto, int32_t pos, UErrorCode& status) const; /** * Performs a mathematical operation on the number, formats it using @@ -124,7 +124,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) const; + virtual void doSubstitution(double number, UnicodeString& toInsertInto, int32_t pos, UErrorCode& status) const; protected: /** @@ -248,6 +248,16 @@ public: */ virtual UBool isModulusSubstitution() const; + /** + * @return true if this is a decimal format-only substitution + */ + virtual UBool isDecimalFormatSubstitutionOnly() const; + + /** + * @return true if this substitution only points to another ruleSet (no numberFormat) + */ + virtual UBool isRuleSetSubstitutionOnly() const; + private: NFSubstitution(const NFSubstitution &other); // forbid copying of this class NFSubstitution &operator=(const NFSubstitution &other); // forbid copying of this class