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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « source/i18n/timezone.cpp ('k') | source/i18n/unicode/measunit.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/i18n/unicode/measfmt.h
diff --git a/source/i18n/unicode/measfmt.h b/source/i18n/unicode/measfmt.h
index 61a1e86d9c431e7c18a48ccb976e37c16ed82c1b..ee054274194243f5a958afebbdc913cb003cdc87 100644
--- a/source/i18n/unicode/measfmt.h
+++ b/source/i18n/unicode/measfmt.h
@@ -327,17 +327,19 @@ class U_I18N_API MeasureFormat : public Format {
// shared across instances.
ListFormatter *listFormatter;
- const QuantityFormatter *getQuantityFormatter(
- int32_t index,
- int32_t widthIndex,
- UErrorCode &status) const;
+ const SimplePatternFormatter *getFormatterOrNull(
+ const MeasureUnit &unit, UMeasureFormatWidth width, int32_t index) const;
+
+ const SimplePatternFormatter *getFormatter(
+ const MeasureUnit &unit, UMeasureFormatWidth width, int32_t index,
+ UErrorCode &errorCode) const;
- const SimplePatternFormatter *getPerUnitFormatter(
- int32_t index,
- int32_t widthIndex) const;
+ const SimplePatternFormatter *getPluralFormatter(
+ const MeasureUnit &unit, UMeasureFormatWidth width, int32_t index,
+ UErrorCode &errorCode) const;
const SimplePatternFormatter *getPerFormatter(
- int32_t widthIndex,
+ UMeasureFormatWidth width,
UErrorCode &status) const;
int32_t withPerUnitAndAppend(
« 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