| OLD | NEW |
| 1 /* | 1 /* |
| 2 ********************************************************************** | 2 ********************************************************************** |
| 3 * Copyright (c) 2004-2015, International Business Machines | 3 * Copyright (c) 2004-2015, International Business Machines |
| 4 * Corporation and others. All Rights Reserved. | 4 * Corporation and others. All Rights Reserved. |
| 5 ********************************************************************** | 5 ********************************************************************** |
| 6 * Author: Alan Liu | 6 * Author: Alan Liu |
| 7 * Created: April 20, 2004 | 7 * Created: April 20, 2004 |
| 8 * Since: ICU 3.0 | 8 * Since: ICU 3.0 |
| 9 ********************************************************************** | 9 ********************************************************************** |
| 10 */ | 10 */ |
| (...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 const MeasureFormatCacheData *cache; | 320 const MeasureFormatCacheData *cache; |
| 321 const SharedNumberFormat *numberFormat; | 321 const SharedNumberFormat *numberFormat; |
| 322 const SharedPluralRules *pluralRules; | 322 const SharedPluralRules *pluralRules; |
| 323 UMeasureFormatWidth width; | 323 UMeasureFormatWidth width; |
| 324 | 324 |
| 325 // Declared outside of MeasureFormatSharedData because ListFormatter | 325 // Declared outside of MeasureFormatSharedData because ListFormatter |
| 326 // objects are relatively cheap to copy; therefore, they don't need to be | 326 // objects are relatively cheap to copy; therefore, they don't need to be |
| 327 // shared across instances. | 327 // shared across instances. |
| 328 ListFormatter *listFormatter; | 328 ListFormatter *listFormatter; |
| 329 | 329 |
| 330 const QuantityFormatter *getQuantityFormatter( | 330 const SimplePatternFormatter *getFormatterOrNull( |
| 331 int32_t index, | 331 const MeasureUnit &unit, UMeasureFormatWidth width, int32_t index) c
onst; |
| 332 int32_t widthIndex, | |
| 333 UErrorCode &status) const; | |
| 334 | 332 |
| 335 const SimplePatternFormatter *getPerUnitFormatter( | 333 const SimplePatternFormatter *getFormatter( |
| 336 int32_t index, | 334 const MeasureUnit &unit, UMeasureFormatWidth width, int32_t index, |
| 337 int32_t widthIndex) const; | 335 UErrorCode &errorCode) const; |
| 336 |
| 337 const SimplePatternFormatter *getPluralFormatter( |
| 338 const MeasureUnit &unit, UMeasureFormatWidth width, int32_t index, |
| 339 UErrorCode &errorCode) const; |
| 338 | 340 |
| 339 const SimplePatternFormatter *getPerFormatter( | 341 const SimplePatternFormatter *getPerFormatter( |
| 340 int32_t widthIndex, | 342 UMeasureFormatWidth width, |
| 341 UErrorCode &status) const; | 343 UErrorCode &status) const; |
| 342 | 344 |
| 343 int32_t withPerUnitAndAppend( | 345 int32_t withPerUnitAndAppend( |
| 344 const UnicodeString &formatted, | 346 const UnicodeString &formatted, |
| 345 const MeasureUnit &perUnit, | 347 const MeasureUnit &perUnit, |
| 346 UnicodeString &appendTo, | 348 UnicodeString &appendTo, |
| 347 UErrorCode &status) const; | 349 UErrorCode &status) const; |
| 348 | 350 |
| 349 UnicodeString &formatMeasure( | 351 UnicodeString &formatMeasure( |
| 350 const Measure &measure, | 352 const Measure &measure, |
| (...skipping 22 matching lines...) Expand all Loading... |
| 373 UDateFormatField smallestField, | 375 UDateFormatField smallestField, |
| 374 const Formattable &smallestAmount, | 376 const Formattable &smallestAmount, |
| 375 UnicodeString &appendTo, | 377 UnicodeString &appendTo, |
| 376 UErrorCode &status) const; | 378 UErrorCode &status) const; |
| 377 }; | 379 }; |
| 378 | 380 |
| 379 U_NAMESPACE_END | 381 U_NAMESPACE_END |
| 380 | 382 |
| 381 #endif // #if !UCONFIG_NO_FORMATTING | 383 #endif // #if !UCONFIG_NO_FORMATTING |
| 382 #endif // #ifndef MEASUREFORMAT_H | 384 #endif // #ifndef MEASUREFORMAT_H |
| OLD | NEW |