Home
last modified time | relevance | path

Searched refs:IsWellCollation (Results 1 - 4 of 4) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/tests/
H A Djs_locale_test.cpp383 * @tc.name: IsWellCollation
384 * @tc.desc: Call "IsWellCollation" function judge whether the collation is well from locale.
388 HWTEST_F_L0(JSLocaleTest, IsWellCollation) in HWTEST_F_L0()
390 EXPECT_TRUE(JSLocale::IsWellCollation("ar-EG", "compat")); in HWTEST_F_L0()
392 EXPECT_FALSE(JSLocale::IsWellCollation("ar-EG", "stroke")); in HWTEST_F_L0()
393 EXPECT_FALSE(JSLocale::IsWellCollation("ar-EG", "pinyin")); in HWTEST_F_L0()
394 EXPECT_FALSE(JSLocale::IsWellCollation("ar-EG", "phonebk")); in HWTEST_F_L0()
395 EXPECT_FALSE(JSLocale::IsWellCollation("ar-EG", "search")); in HWTEST_F_L0()
396 EXPECT_FALSE(JSLocale::IsWellCollation("ar-EG", "standard")); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/
H A Djs_collator.cpp210 if (!collationStr.empty() && JSLocale::IsWellCollation(icuLocale, collationStr)) { in InitializeCollator()
H A Djs_locale.h348 static bool IsWellCollation(const icu::Locale &locale, const std::string &value) in IsWellCollation() function in panda::ecmascript::JSIntlIterator
H A Djs_locale.cpp545 bool isValidValue = IsWellCollation(foundLocaleData, requestedValue); in ResolveLocale()

Completed in 6 milliseconds