Lines Matching defs:config
26 ResTable_config config;
27 config.packLanguage("en");
29 EXPECT_EQ('e', config.language[0]);
30 EXPECT_EQ('n', config.language[1]);
33 config.unpackLanguage(out);
40 config.locale = 0;
41 config.unpackLanguage(out);
49 ResTable_config config;
50 config.packRegion("US");
52 EXPECT_EQ('U', config.country[0]);
53 EXPECT_EQ('S', config.country[1]);
56 config.unpackRegion(out);
64 ResTable_config config;
65 config.packLanguage("eng");
68 EXPECT_EQ('\x99', config.language[0]);
69 EXPECT_EQ('\xA4', config.language[1]);
72 config.unpackLanguage(out);
80 ResTable_config config;
81 config.packLanguage("tgp");
92 EXPECT_EQ(char(0xbc), config.language[0]);
93 EXPECT_EQ(char(0xd3), config.language[1]);
96 config.unpackLanguage(out);
104 ResTable_config config;
105 config.packRegion("419");
108 config.unpackRegion(out);
241 ResTable_config config;
243 fillIn(NULL, NULL, NULL, NULL, &config);
244 EXPECT_EQ(0, memcmp("\0\0\0\0", config.localeScript, 4));
246 fillIn("zh", "TW", NULL, NULL, &config);
247 EXPECT_EQ(0, memcmp("Hant", config.localeScript, 4));
249 fillIn("zh", "CN", NULL, NULL, &config);
250 EXPECT_EQ(0, memcmp("Hans", config.localeScript, 4));
252 fillIn("az", NULL, NULL, NULL, &config);
253 EXPECT_EQ(0, memcmp("Latn", config.localeScript, 4));
255 fillIn("az", "AZ", NULL, NULL, &config);
256 EXPECT_EQ(0, memcmp("Latn", config.localeScript, 4));
258 fillIn("az", "IR", NULL, NULL, &config);
259 EXPECT_EQ(0, memcmp("Arab", config.localeScript, 4));
261 fillIn("peo", NULL, NULL, NULL, &config);
262 EXPECT_EQ(0, memcmp("Xpeo", config.localeScript, 4));
264 fillIn("qaa", NULL, NULL, NULL, &config);
265 EXPECT_EQ(0, memcmp("\0\0\0\0", config.localeScript, 4));
269 ResTable_config config;
270 fillIn("en", NULL, "Latn", NULL, &config);
273 config.localeScriptWasComputed = false;
274 config.getBcp47Locale(out);
277 config.localeScriptWasComputed = true;
278 config.getBcp47Locale(out);