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

Side by Side Diff: source/i18n/unicode/measfmt.h

Issue 1621943002: ICU 56 step 4: Apply post-56 fixes for measure/date format (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/icu.git@56goog
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/timezone.cpp ('k') | source/i18n/unicode/measunit.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) 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
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
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
OLDNEW
« no previous file with comments | « source/i18n/timezone.cpp ('k') | source/i18n/unicode/measunit.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698