Lines Matching refs:createFontLanguage
39 static FontLanguage createFontLanguage(const std::string& input) { in createFontLanguage() function
48 FontLanguage english = createFontLanguage("en"); in TEST_F()
49 FontLanguage french = createFontLanguage("fr"); in TEST_F()
50 FontLanguage und = createFontLanguage("und"); in TEST_F()
51 FontLanguage undZsye = createFontLanguage("und-Zsye"); in TEST_F()
78 EXPECT_EQ("en-Latn", createFontLanguage("en").getString()); in TEST_F()
79 EXPECT_EQ("en-Latn", createFontLanguage("en-Latn").getString()); in TEST_F()
82 EXPECT_EQ("en-Latn", createFontLanguage("EN-LATN").getString()); in TEST_F()
83 EXPECT_EQ("en-Latn", createFontLanguage("EN-latn").getString()); in TEST_F()
84 EXPECT_EQ("en-Latn", createFontLanguage("en-latn").getString()); in TEST_F()
87 EXPECT_EQ("en-Xyzt", createFontLanguage("en-xyzt").getString()); in TEST_F()
89 EXPECT_EQ("en-Latn", createFontLanguage("en-Latn-US").getString()); in TEST_F()
90 EXPECT_EQ("ja-Jpan", createFontLanguage("ja").getString()); in TEST_F()
91 EXPECT_EQ("und", createFontLanguage("und").getString()); in TEST_F()
92 EXPECT_EQ("und", createFontLanguage("UND").getString()); in TEST_F()
93 EXPECT_EQ("und", createFontLanguage("Und").getString()); in TEST_F()
94 EXPECT_EQ("und-Zsye", createFontLanguage("und-Zsye").getString()); in TEST_F()
95 EXPECT_EQ("und-Zsye", createFontLanguage("Und-ZSYE").getString()); in TEST_F()
96 EXPECT_EQ("und-Zsye", createFontLanguage("Und-zsye").getString()); in TEST_F()
98 EXPECT_EQ("de-Latn", createFontLanguage("de-1901").getString()); in TEST_F()
101 EXPECT_EQ("en-Latn", createFontLanguage("und-Abcdefgh").getString()); in TEST_F()
105 EXPECT_TRUE(createFontLanguage("en").isEqualScript(createFontLanguage("en"))); in TEST_F()
106 EXPECT_TRUE(createFontLanguage("en-Latn").isEqualScript(createFontLanguage("en"))); in TEST_F()
107 EXPECT_TRUE(createFontLanguage("jp-Latn").isEqualScript(createFontLanguage("en-Latn"))); in TEST_F()
108 EXPECT_TRUE(createFontLanguage("en-Jpan").isEqualScript(createFontLanguage("en-Jpan"))); in TEST_F()
110 EXPECT_FALSE(createFontLanguage("en-Jpan").isEqualScript(createFontLanguage("en-Hira"))); in TEST_F()
111 EXPECT_FALSE(createFontLanguage("en-Jpan").isEqualScript(createFontLanguage("en-Hani"))); in TEST_F()
205 createFontLanguage(testCase.baseScript).supportsHbScript(script)) in TEST_F()
209 createFontLanguage(testCase.baseScript).supportsHbScript(script)) in TEST_F()
219 FontLanguage english = createFontLanguage("en"); in TEST_F()
224 FontLanguage french = createFontLanguage("fr"); in TEST_F()
238 FontLanguage english = createFontLanguage("en"); in TEST_F()
249 FontLanguage english = createFontLanguage("en"); in TEST_F()
250 FontLanguage french = createFontLanguage("fr"); in TEST_F()
251 FontLanguage englishInLatn = createFontLanguage("en-Latn"); in TEST_F()
271 FontLanguage emoji = createFontLanguage("und-Zsye"); in TEST_F()
274 FontLanguage und = createFontLanguage("und"); in TEST_F()
278 FontLanguage undExample = createFontLanguage("und-example"); in TEST_F()