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

Side by Side Diff: source/i18n/nfsubs.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 unified diff | Download patch
« no previous file with comments | « source/i18n/nfrule.cpp ('k') | source/i18n/nfsubs.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« 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