Home
last modified time | relevance | path

Searched refs:localeTags (Results 1 – 15 of 15) sorted by relevance

/base/global/i18n/frameworks/intl/test/fuzztest/collator_fuzzer/
Dcollator_fuzzer.cpp30 std::vector<std::string> localeTags(1, input); in DoSomethingInterestingWithMyAPI() local
33 Collator collator(localeTags, options); in DoSomethingInterestingWithMyAPI()
/base/global/i18n/frameworks/intl/src/
Dplural_rules.cpp106 void PluralRules::InitPluralRules(std::vector<std::string> &localeTags, in InitPluralRules() argument
111 localeTags.push_back(LocaleConfig::GetSystemLocale()); in InitPluralRules()
112 for (size_t i = 0; i < localeTags.size(); i++) { in InitPluralRules()
113 std::string curLocale = localeTags[i]; in InitPluralRules()
159 PluralRules::PluralRules(std::vector<std::string> &localeTags, std::map<std::string, std::string> &… in PluralRules() argument
162 InitPluralRules(localeTags, options); in PluralRules()
Dcollator.cpp73 Collator::Collator(std::vector<std::string> &localeTags, std::map<std::string, std::string> &option… in Collator() argument
77 localeTags.push_back(LocaleConfig::GetSystemLocale()); in Collator()
78 for (size_t i = 0; i < localeTags.size(); i++) { in Collator()
79 std::string curLocale = localeTags[i]; in Collator()
Drelative_time_format.cpp47 RelativeTimeFormat::RelativeTimeFormat(const std::vector<std::string> &localeTags, in RelativeTimeFormat() argument
52 for (size_t i = 0; i < localeTags.size(); i++) { in RelativeTimeFormat()
53 std::string curLocale = localeTags[i]; in RelativeTimeFormat()
Ddate_time_format.cpp36 DateTimeFormat::DateTimeFormat(const std::vector<std::string> &localeTags, std::map<std::string, st… in DateTimeFormat() argument
41 for (size_t i = 0; i < localeTags.size(); i++) { in DateTimeFormat()
42 std::string curLocale = localeTags[i]; in DateTimeFormat()
95 …ique_ptr<DateTimeFormat> DateTimeFormat::CreateInstance(const std::vector<std::string> &localeTags, in CreateInstance() argument
98 …std::unique_ptr<DateTimeFormat> dateTimeFormat = std::make_unique<DateTimeFormat>(localeTags, conf… in CreateInstance()
Dnumber_format.cpp58 NumberFormat::NumberFormat(const std::vector<std::string> &localeTags, std::map<std::string, std::s… in NumberFormat() argument
64 for (size_t i = 0; i < localeTags.size(); i++) { in NumberFormat()
65 std::string curLocale = localeTags[i]; in NumberFormat()
/base/global/i18n/frameworks/intl/test/fuzztest/relativetimeformat_fuzzer/
Drelativetimeformat_fuzzer.cpp29 std::vector<std::string> localeTags(1, input); in DoSomethingInterestingWithMyAPI() local
32 RelativeTimeFormat formatter(localeTags, options); in DoSomethingInterestingWithMyAPI()
/base/global/i18n/frameworks/intl/test/fuzztest/numberformat_fuzzer/
Dnumberformat_fuzzer.cpp29 std::vector<std::string> localeTags(1, input); in DoSomethingInterestingWithMyAPI() local
32 NumberFormat formatter(localeTags, options); in DoSomethingInterestingWithMyAPI()
/base/global/i18n/frameworks/intl/include/
Dplural_rules.h34 PluralRules(std::vector<std::string> &localeTags, std::map<std::string, std::string> &options);
57 …void InitPluralRules(std::vector<std::string> &localeTags, std::map<std::string, std::string> &opt…
Dcollator.h41 Collator(std::vector<std::string> &localeTags, std::map<std::string, std::string> &options);
Ddate_time_format.h38 …DateTimeFormat(const std::vector<std::string> &localeTags, std::map<std::string, std::string> &con…
58 … static std::unique_ptr<DateTimeFormat> CreateInstance(const std::vector<std::string> &localeTags,
/base/global/i18n/interfaces/js/kits/include/
Dintl_addon.h33 void GetLocaleTags(napi_env env, napi_value rawLocaleTag, std::vector<std::string> &localeTags);
107 …itDateTimeFormatContext(napi_env env, napi_callback_info info, std::vector<std::string> localeTags,
109 …InitNumberFormatContext(napi_env env, napi_callback_info info, std::vector<std::string> localeTags,
111 …ool InitCollatorContext(napi_env env, napi_callback_info info, std::vector<std::string> localeTags,
113 …lativeTimeFormatContext(napi_env env, napi_callback_info info, std::vector<std::string> localeTags,
115 … InitPluralRulesContext(napi_env env, napi_callback_info info, std::vector<std::string> localeTags,
/base/global/i18n/interfaces/js/kits/src/
Dintl_addon.cpp358 void GetLocaleTags(napi_env env, napi_value rawLocaleTag, std::vector<std::string> &localeTags) in GetLocaleTags() argument
372 localeTags.push_back(buf.data()); in GetLocaleTags()
385 std::vector<std::string> localeTags; in DateTimeFormatConstructor() local
392 GetLocaleTags(env, argv[0], localeTags); in DateTimeFormatConstructor()
399 GetLocaleTags(env, element, localeTags); in DateTimeFormatConstructor()
415 if (!obj->InitDateTimeFormatContext(env, info, localeTags, map)) { in DateTimeFormatConstructor()
423 …itDateTimeFormatContext(napi_env env, napi_callback_info info, std::vector<std::string> localeTags, in InitDateTimeFormatContext() argument
433 datefmt_ = DateTimeFormat::CreateInstance(localeTags, map); in InitDateTimeFormatContext()
448 std::vector<std::string> localeTags; in RelativeTimeFormatConstructor() local
455 GetLocaleTags(env, argv[0], localeTags); in RelativeTimeFormatConstructor()
[all …]
Di18n_addon.cpp279 std::vector<std::string> localeTags; in UnitConvert() local
280 localeTags.push_back(localeBuf.data()); in UnitConvert()
291 numberFmt = std::make_unique<NumberFormat>(localeTags, map); in UnitConvert()
/base/global/i18n/frameworks/intl/test/unittest/
Dintl_test.cpp2216 std::vector<std::string> localeTags = { "fake locale tag"}; variable
2220 NumberFormat formatter(localeTags, configs);