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

Side by Side Diff: source/i18n/unicode/compactdecimalformat.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 unified diff | Download patch
« no previous file with comments | « source/i18n/unicode/coll.h ('k') | source/i18n/unicode/currpinf.h » ('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) 2012-2014, International Business Machines 3 * Copyright (C) 2012-2015, International Business Machines
4 * Corporation and others. All Rights Reserved. 4 * Corporation and others. All Rights Reserved.
5 ******************************************************************************** 5 ********************************************************************************
6 * 6 *
7 * File COMPACTDECIMALFORMAT.H 7 * File COMPACTDECIMALFORMAT.H
8 ******************************************************************************** 8 ********************************************************************************
9 */ 9 */
10 10
11 #ifndef __COMPACT_DECIMAL_FORMAT_H__ 11 #ifndef __COMPACT_DECIMAL_FORMAT_H__
12 #define __COMPACT_DECIMAL_FORMAT_H__ 12 #define __COMPACT_DECIMAL_FORMAT_H__
13 13
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 * On output: the offsets of the alignment field. 116 * On output: the offsets of the alignment field.
117 * @return Reference to 'appendTo' parameter. 117 * @return Reference to 'appendTo' parameter.
118 * @stable ICU 51 118 * @stable ICU 51
119 */ 119 */
120 virtual UnicodeString& format(double number, 120 virtual UnicodeString& format(double number,
121 UnicodeString& appendTo, 121 UnicodeString& appendTo,
122 FieldPosition& pos) const; 122 FieldPosition& pos) const;
123 123
124 /** 124 /**
125 * Format a double or long number using base-10 representation. 125 * Format a double or long number using base-10 representation.
126 *
127 * @param number The value to be formatted.
128 * @param appendTo Output parameter to receive result.
129 * Result is appended to existing contents.
130 * @param pos On input: an alignment field, if desired.
131 * On output: the offsets of the alignment field.
132 * @param status
133 * @return Reference to 'appendTo' parameter.
134 * @internal
135 */
136 virtual UnicodeString& format(double number,
137 UnicodeString& appendTo,
138 FieldPosition& pos,
139 UErrorCode &status) const;
140
141 /**
142 * Format a double or long number using base-10 representation.
126 * Currently sets status to U_UNSUPPORTED_ERROR. 143 * Currently sets status to U_UNSUPPORTED_ERROR.
127 * 144 *
128 * @param number The value to be formatted. 145 * @param number The value to be formatted.
129 * @param appendTo Output parameter to receive result. 146 * @param appendTo Output parameter to receive result.
130 * Result is appended to existing contents. 147 * Result is appended to existing contents.
131 * @param posIter On return, can be used to iterate over positions 148 * @param posIter On return, can be used to iterate over positions
132 * of fields generated by this format call. 149 * of fields generated by this format call.
133 * Can be NULL. 150 * Can be NULL.
134 * @param status Output param filled with success/failure status. 151 * @param status Output param filled with success/failure status.
135 * @return Reference to 'appendTo' parameter. 152 * @return Reference to 'appendTo' parameter.
136 * @internal 153 * @internal
137 */ 154 */
138 virtual UnicodeString& format(double number, 155 virtual UnicodeString& format(double number,
139 UnicodeString& appendTo, 156 UnicodeString& appendTo,
140 FieldPositionIterator* posIter, 157 FieldPositionIterator* posIter,
141 UErrorCode& status) const; 158 UErrorCode& status) const;
142 159
143 /** 160 /**
161 * Format a long number using base-10 representation.
162 *
163 * @param number The value to be formatted.
164 * @param appendTo Output parameter to receive result.
165 * Result is appended to existing contents.
166 * @param pos On input: an alignment field, if desired.
167 * On output: the offsets of the alignment field.
168 * @return Reference to 'appendTo' parameter.
169 * @draft ICU 56
170 */
171 virtual UnicodeString& format(int32_t number,
172 UnicodeString& appendTo,
173 FieldPosition& pos) const;
174
175 /**
176 * Format a long number using base-10 representation.
177 *
178 * @param number The value to be formatted.
179 * @param appendTo Output parameter to receive result.
180 * Result is appended to existing contents.
181 * @param pos On input: an alignment field, if desired.
182 * On output: the offsets of the alignment field.
183 * @return Reference to 'appendTo' parameter.
184 * @internal
185 */
186 virtual UnicodeString& format(int32_t number,
187 UnicodeString& appendTo,
188 FieldPosition& pos,
189 UErrorCode &status) const;
190
191 /**
192 * Format a long number using base-10 representation.
193 * Currently sets status to U_UNSUPPORTED_ERROR
194 *
195 * @param number The value to be formatted.
196 * @param appendTo Output parameter to receive result.
197 * Result is appended to existing contents.
198 * @param posIter On return, can be used to iterate over positions
199 * of fields generated by this format call.
200 * Can be NULL.
201 * @param status Output param filled with success/failure status.
202 * @return Reference to 'appendTo' parameter.
203 * @internal
204 */
205 virtual UnicodeString& format(int32_t number,
206 UnicodeString& appendTo,
207 FieldPositionIterator* posIter,
208 UErrorCode& status) const;
209
210 /**
144 * Format an int64 number using base-10 representation. 211 * Format an int64 number using base-10 representation.
145 * 212 *
146 * @param number The value to be formatted. 213 * @param number The value to be formatted.
147 * @param appendTo Output parameter to receive result. 214 * @param appendTo Output parameter to receive result.
148 * Result is appended to existing contents. 215 * Result is appended to existing contents.
149 * @param pos On input: an alignment field, if desired. 216 * @param pos On input: an alignment field, if desired.
150 * On output: the offsets of the alignment field. 217 * On output: the offsets of the alignment field.
151 * @return Reference to 'appendTo' parameter. 218 * @return Reference to 'appendTo' parameter.
152 * @stable ICU 51 219 * @stable ICU 51
153 */ 220 */
154 virtual UnicodeString& format(int64_t number, 221 virtual UnicodeString& format(int64_t number,
155 UnicodeString& appendTo, 222 UnicodeString& appendTo,
156 FieldPosition& pos) const; 223 FieldPosition& pos) const;
157 224
158 /** 225 /**
159 * Format an int64 number using base-10 representation. 226 * Format an int64 number using base-10 representation.
227 *
228 * @param number The value to be formatted.
229 * @param appendTo Output parameter to receive result.
230 * Result is appended to existing contents.
231 * @param pos On input: an alignment field, if desired.
232 * On output: the offsets of the alignment field.
233 * @return Reference to 'appendTo' parameter.
234 * @internal
235 */
236 virtual UnicodeString& format(int64_t number,
237 UnicodeString& appendTo,
238 FieldPosition& pos,
239 UErrorCode &status) const;
240
241 /**
242 * Format an int64 number using base-10 representation.
160 * Currently sets status to U_UNSUPPORTED_ERROR 243 * Currently sets status to U_UNSUPPORTED_ERROR
161 * 244 *
162 * @param number The value to be formatted. 245 * @param number The value to be formatted.
163 * @param appendTo Output parameter to receive result. 246 * @param appendTo Output parameter to receive result.
164 * Result is appended to existing contents. 247 * Result is appended to existing contents.
165 * @param posIter On return, can be used to iterate over positions 248 * @param posIter On return, can be used to iterate over positions
166 * of fields generated by this format call. 249 * of fields generated by this format call.
167 * Can be NULL. 250 * Can be NULL.
168 * @param status Output param filled with success/failure status. 251 * @param status Output param filled with success/failure status.
169 * @return Reference to 'appendTo' parameter. 252 * @return Reference to 'appendTo' parameter.
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 404
322 UBool eqHelper(const CompactDecimalFormat& that) const; 405 UBool eqHelper(const CompactDecimalFormat& that) const;
323 }; 406 };
324 407
325 U_NAMESPACE_END 408 U_NAMESPACE_END
326 409
327 #endif /* #if !UCONFIG_NO_FORMATTING */ 410 #endif /* #if !UCONFIG_NO_FORMATTING */
328 411
329 #endif // __COMPACT_DECIMAL_FORMAT_H__ 412 #endif // __COMPACT_DECIMAL_FORMAT_H__
330 //eof 413 //eof
OLDNEW
« no previous file with comments | « source/i18n/unicode/coll.h ('k') | source/i18n/unicode/currpinf.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698