| OLD | NEW |
| 1 /* | 1 /* |
| 2 ****************************************************************************** | 2 ****************************************************************************** |
| 3 * Copyright (C) 1997-2007, International Business Machines | 3 * Copyright (C) 1997-2014, International Business Machines |
| 4 * Corporation and others. All Rights Reserved. | 4 * Corporation and others. All Rights Reserved. |
| 5 ****************************************************************************** | 5 ****************************************************************************** |
| 6 * file name: nfsubs.h | 6 * file name: nfsubs.h |
| 7 * encoding: US-ASCII | 7 * encoding: US-ASCII |
| 8 * tab size: 8 (not used) | 8 * tab size: 8 (not used) |
| 9 * indentation:4 | 9 * indentation:4 |
| 10 * | 10 * |
| 11 * Modification history | 11 * Modification history |
| 12 * Date Name Comments | 12 * Date Name Comments |
| 13 * 10/11/2001 Doug Ported from ICU4J | 13 * 10/11/2001 Doug Ported from ICU4J |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 /** | 105 /** |
| 106 * Performs a mathematical operation on the number, formats it using | 106 * Performs a mathematical operation on the number, formats it using |
| 107 * either ruleSet or decimalFormat, and inserts the result into | 107 * either ruleSet or decimalFormat, and inserts the result into |
| 108 * toInsertInto. | 108 * toInsertInto. |
| 109 * @param number The number being formatted. | 109 * @param number The number being formatted. |
| 110 * @param toInsertInto The string we insert the result into | 110 * @param toInsertInto The string we insert the result into |
| 111 * @param pos The position in toInsertInto where the owning rule's | 111 * @param pos The position in toInsertInto where the owning rule's |
| 112 * rule text begins (this value is added to this substitution's | 112 * rule text begins (this value is added to this substitution's |
| 113 * position to determine exactly where to insert the new text) | 113 * position to determine exactly where to insert the new text) |
| 114 */ | 114 */ |
| 115 virtual void doSubstitution(int64_t number, UnicodeString& toInsertInto, int
32_t pos) const; | 115 virtual void doSubstitution(int64_t number, UnicodeString& toInsertInto, int
32_t pos, UErrorCode& status) const; |
| 116 | 116 |
| 117 /** | 117 /** |
| 118 * Performs a mathematical operation on the number, formats it using | 118 * Performs a mathematical operation on the number, formats it using |
| 119 * either ruleSet or decimalFormat, and inserts the result into | 119 * either ruleSet or decimalFormat, and inserts the result into |
| 120 * toInsertInto. | 120 * toInsertInto. |
| 121 * @param number The number being formatted. | 121 * @param number The number being formatted. |
| 122 * @param toInsertInto The string we insert the result into | 122 * @param toInsertInto The string we insert the result into |
| 123 * @param pos The position in toInsertInto where the owning rule's | 123 * @param pos The position in toInsertInto where the owning rule's |
| 124 * rule text begins (this value is added to this substitution's | 124 * rule text begins (this value is added to this substitution's |
| 125 * position to determine exactly where to insert the new text) | 125 * position to determine exactly where to insert the new text) |
| 126 */ | 126 */ |
| 127 virtual void doSubstitution(double number, UnicodeString& toInsertInto, int3
2_t pos) const; | 127 virtual void doSubstitution(double number, UnicodeString& toInsertInto, int3
2_t pos, UErrorCode& status) const; |
| 128 | 128 |
| 129 protected: | 129 protected: |
| 130 /** | 130 /** |
| 131 * Subclasses override this function to perform some kind of | 131 * Subclasses override this function to perform some kind of |
| 132 * mathematical operation on the number. The result of this operation | 132 * mathematical operation on the number. The result of this operation |
| 133 * is formatted using the rule set or DecimalFormat that this | 133 * is formatted using the rule set or DecimalFormat that this |
| 134 * substitution refers to, and the result is inserted into the result | 134 * substitution refers to, and the result is inserted into the result |
| 135 * string. | 135 * string. |
| 136 * @param The number being formatted | 136 * @param The number being formatted |
| 137 * @return The result of performing the opreration on the number | 137 * @return The result of performing the opreration on the number |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 virtual UClassID getDynamicClassID(void) const; | 257 virtual UClassID getDynamicClassID(void) const; |
| 258 }; | 258 }; |
| 259 | 259 |
| 260 U_NAMESPACE_END | 260 U_NAMESPACE_END |
| 261 | 261 |
| 262 /* U_HAVE_RBNF */ | 262 /* U_HAVE_RBNF */ |
| 263 #endif | 263 #endif |
| 264 | 264 |
| 265 // NFSUBS_H | 265 // NFSUBS_H |
| 266 #endif | 266 #endif |
| OLD | NEW |