Lines Matching refs:locale
25 Locale locale = Locale::Invalid(); in TEST() local
26 EXPECT_FALSE(locale.IsValid()); in TEST()
30 Locale locale = Locale::FromBCP47("en-CH"); in TEST() local
31 EXPECT_TRUE(locale.IsValid()); in TEST()
32 EXPECT_EQ(locale.Language(), "en"); in TEST()
33 EXPECT_EQ(locale.Script(), ""); in TEST()
34 EXPECT_EQ(locale.Region(), "CH"); in TEST()
38 Locale locale = Locale::FromBCP47("zh-CN"); in TEST() local
39 EXPECT_TRUE(locale.IsValid()); in TEST()
40 EXPECT_EQ(locale.Language(), "zh"); in TEST()
41 EXPECT_EQ(locale.Script(), ""); in TEST()
42 EXPECT_EQ(locale.Region(), "CN"); in TEST()
46 Locale locale = Locale::FromBCP47("zh-Hant-TW"); in TEST() local
47 EXPECT_TRUE(locale.IsValid()); in TEST()
48 EXPECT_EQ(locale.Language(), "zh"); in TEST()
49 EXPECT_EQ(locale.Script(), "Hant"); in TEST()
50 EXPECT_EQ(locale.Region(), "TW"); in TEST()
54 Locale locale = Locale::FromBCP47("en"); in TEST() local
55 EXPECT_TRUE(locale.IsValid()); in TEST()
56 EXPECT_EQ(locale.Language(), "en"); in TEST()
57 EXPECT_EQ(locale.Script(), ""); in TEST()
58 EXPECT_EQ(locale.Region(), ""); in TEST()
62 Locale locale = Locale::FromBCP47("zh-Hant"); in TEST() local
63 EXPECT_TRUE(locale.IsValid()); in TEST()
64 EXPECT_EQ(locale.Language(), "zh"); in TEST()
65 EXPECT_EQ(locale.Script(), "Hant"); in TEST()
66 EXPECT_EQ(locale.Region(), ""); in TEST()