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

Unified Diff: source/i18n/nfrule.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « source/i18n/nfrs.cpp ('k') | source/i18n/nfrule.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/i18n/nfrule.h
diff --git a/source/i18n/nfrule.h b/source/i18n/nfrule.h
index 8422a20c1d66a42ca17d5456405a59fd28f12180..96474630a4501fb4886169bf3811e376b6f3d2df 100644
--- a/source/i18n/nfrule.h
+++ b/source/i18n/nfrule.h
@@ -1,6 +1,6 @@
/*
*******************************************************************************
-* Copyright (C) 1997-2008, International Business Machines
+* Copyright (C) 1997-2014, International Business Machines
* Corporation and others. All Rights Reserved.
*******************************************************************************
*/
@@ -25,6 +25,7 @@ class NFRuleList;
class NFRuleSet;
class NFSubstitution;
class ParsePosition;
+class PluralFormat;
class RuleBasedNumberFormat;
class UnicodeString;
@@ -61,8 +62,8 @@ public:
double getDivisor() const { return uprv_pow(radix, exponent); }
- void doFormat(int64_t number, UnicodeString& toAppendTo, int32_t pos) const;
- void doFormat(double number, UnicodeString& toAppendTo, int32_t pos) const;
+ void doFormat(int64_t number, UnicodeString& toAppendTo, int32_t pos, UErrorCode& status) const;
+ void doFormat(double number, UnicodeString& toAppendTo, int32_t pos, UErrorCode& status) const;
UBool doParse(const UnicodeString& text,
ParsePosition& pos,
@@ -74,10 +75,13 @@ public:
void _appendRuleText(UnicodeString& result) const;
+ int32_t findTextLenient(const UnicodeString& str, const UnicodeString& key,
+ int32_t startingAt, int32_t* resultCount) const;
+
private:
void parseRuleDescriptor(UnicodeString& descriptor, UErrorCode& status);
- void extractSubstitutions(const NFRuleSet* ruleSet, const NFRule* predecessor, const RuleBasedNumberFormat* rbnf, UErrorCode& status);
- NFSubstitution* extractSubstitution(const NFRuleSet* ruleSet, const NFRule* predecessor, const RuleBasedNumberFormat* rbnf, UErrorCode& status);
+ void extractSubstitutions(const NFRuleSet* ruleSet, const UnicodeString &ruleText, const NFRule* predecessor, UErrorCode& status);
+ NFSubstitution* extractSubstitution(const NFRuleSet* ruleSet, const NFRule* predecessor, UErrorCode& status);
int16_t expectedExponent() const;
int32_t indexOfAny(const UChar* const strings[]) const;
@@ -99,6 +103,7 @@ private:
NFSubstitution* sub1;
NFSubstitution* sub2;
const RuleBasedNumberFormat* formatter;
+ const PluralFormat* rulePatternFormat;
NFRule(const NFRule &other); // forbid copying of this class
NFRule &operator=(const NFRule &other); // forbid copying of this class
« no previous file with comments | « source/i18n/nfrs.cpp ('k') | source/i18n/nfrule.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698