Home
last modified time | relevance | path

Searched refs:PluralRules (Results 1 – 12 of 12) sorted by relevance

/base/global/i18n/frameworks/intl/src/
Dplural_rules.cpp41 std::string PluralRules::ParseOption(std::map<std::string, std::string> &options, const std::string… in ParseOption()
51 int PluralRules::GetValidInteger(std::string &integerStr, int minValue, int maxValue, int defaultVa… in GetValidInteger()
67 void PluralRules::ParseAllOptions(std::map<std::string, std::string> &options) in ParseAllOptions()
106 void PluralRules::InitPluralRules(std::vector<std::string> &localeTags, in InitPluralRules()
126 pluralRules = icu::PluralRules::forLocale(locale, uPluralType, status); in InitPluralRules()
140 void PluralRules::InitNumberFormatter() in InitNumberFormatter()
159 PluralRules::PluralRules(std::vector<std::string> &localeTags, std::map<std::string, std::string> &… in PluralRules() function in OHOS::Global::I18n::PluralRules
166 PluralRules::~PluralRules() in ~PluralRules()
174 std::string PluralRules::Select(double number) in Select()
/base/global/i18n_lite/frameworks/i18n/src/
Dplural_rules.cpp20 PluralRules::PluralRules(std::string *rules, const int rulesLength, const int *ruleSize, const int … in PluralRules() function in PluralRules
39 PluralRules::~PluralRules() {} in ~PluralRules()
Dplural_format_impl.cpp57 PluralRules *PluralFormatImpl::InitPluralRules(std::string unprocessedPluralData) in InitPluralRules()
68 return new PluralRules(rules, RULES_NUM, ruleSizes, RULES_NUM); in InitPluralRules()
71 PluralRules *PluralFormatImpl::GetPluralData(I18nStatus status) const in GetPluralData()
/base/global/i18n_lite/frameworks/i18n/include/
Dplural_rules.h24 class PluralRules {
26PluralRules(std::string *rules, const int rulesLength, const int *rulesSize, const int sizesLength…
27 virtual ~PluralRules();
Dplural_format_impl.h35 PluralRules *mPluralRules = nullptr;
36 PluralRules *mDecimalPluralRules = nullptr;
38 PluralRules *GetPluralData(I18nStatus status) const;
49 PluralRules *InitPluralRules(std::string unprocessedPluralData);
/base/global/i18n/frameworks/intl/include/
Dplural_rules.h32 class PluralRules {
34 PluralRules(std::vector<std::string> &localeTags, std::map<std::string, std::string> &options);
35 ~PluralRules();
42 icu::PluralRules *pluralRules = nullptr;
/base/global/i18n/frameworks/intl/test/fuzztest/pluralrules_fuzzer/
Dpluralrules_fuzzer.cpp34 PluralRules pluralRules(localeTags, options); in DoSomethingInterestingWithMyAPI()
/base/global/i18n/frameworks/intl/test/unittest/
Dintl_test.cpp812 PluralRules *plurals = new PluralRules(locales, options);
841 PluralRules *plurals = new PluralRules(locales, options);
863 PluralRules *pluralRules = new PluralRules(locales, options);
887 PluralRules *plurals = new PluralRules(locales, options);
925 PluralRules *plurals = new PluralRules(locales, options);
/base/global/resource_management/frameworks/resmgr/include/
Dhap_manager.h378 std::vector<std::pair<std::string, icu::PluralRules *>> plurRulesCache_;
/base/global/i18n/interfaces/js/kits/include/
Dintl_addon.h126 std::unique_ptr<PluralRules> pluralrules_ = nullptr;
/base/global/resource_management/frameworks/resmgr/src/
Dhap_manager.cpp112 icu::PluralRules *pluralRules = nullptr; in GetPluralRulesAndSelect()
130 pluralRules = icu::PluralRules::forLocale(locale, status); in GetPluralRulesAndSelect()
/base/global/i18n/interfaces/js/kits/src/
Dintl_addon.cpp1750 pluralrules_ = std::make_unique<PluralRules>(localeTags, map); in InitPluralRulesContext()