Lines Matching defs:string

37   EXPECT_EQ(std::string("i"), *new_string->value->spans[0].name);
41 EXPECT_EQ(std::string("b"), *new_string->value->spans[1].name);
45 EXPECT_EQ(std::string("b"), *new_string->value->spans[2].name);
55 EXPECT_EQ(std::string("[Ĥéļļö ŵöŕļð¡ one two]"), new_string->value->value);
82 EXPECT_EQ(std::string("[ɓöļð one]"), new_string->value->value);
84 EXPECT_EQ(std::string("b"), *new_string->value->spans[0].name);
88 EXPECT_EQ(std::string("i"), *new_string->value->spans[1].name);
104 EXPECT_EQ(std::string("[ɓöļð one]"), new_string->value->value);
106 EXPECT_EQ(std::string("b"), *new_string->value->spans[0].name);
110 EXPECT_EQ(std::string("i"), *new_string->value->spans[1].name);
127 EXPECT_EQ(std::string(
131 EXPECT_EQ(std::string("b"), *new_string->value->spans[0].name);
135 EXPECT_EQ(std::string("em"), *new_string->value->spans[1].name);
141 EXPECT_EQ(std::string("i"), *new_string->value->spans[2].name);
147 EXPECT_EQ(std::string("b"), *new_string->value->spans[3].name);
167 EXPECT_EQ(std::string("[Ţĥîš šĥöûļð NOT ɓé þšéûðöļöçåļîžéð. one two three four]"),
170 EXPECT_EQ(std::string("em"), *new_string->value->spans[0].name);
174 EXPECT_EQ(std::string("i"), *new_string->value->spans[1].name);
183 .AddString("android:string/one", "one")
184 .AddString("android:string/two", ResourceId{},
186 .AddString("android:string/three", "three")
187 .AddString("android:string/three", ResourceId{},
189 .AddString("android:string/four", "four")
192 String* val = test::GetValue<String>(table.get(), "android:string/four");
202 test::GetValueForConfig<String>(table.get(), "android:string/one",
205 test::GetValueForConfig<String>(table.get(), "android:string/one",
208 // No default config for android:string/two, so no pseudlocales should exist.
210 test::GetValueForConfig<String>(table.get(), "android:string/two",
213 test::GetValueForConfig<String>(table.get(), "android:string/two",
217 val = test::GetValueForConfig<String>(table.get(), "android:string/three",
220 EXPECT_EQ(std::string("three"), *val->value);
223 test::GetValueForConfig<String>(table.get(), "android:string/three",
228 test::GetValueForConfig<String>(table.get(), "android:string/four",
231 test::GetValueForConfig<String>(table.get(), "android:string/four",
250 auto string = util::make_unique<String>(table->string_pool.MakeRef(original_style.str));
251 string->untranslatable_sections.push_back(UntranslatableSection{6u, 11u});
253 ASSERT_TRUE(table->AddResource(test::ParseNameOrDie("android:string/foo"), ConfigDescription{},
256 ASSERT_TRUE(table->AddResource(test::ParseNameOrDie("android:string/bar"), ConfigDescription{},
257 {} /* product */, std::move(string), context->GetDiagnostics()));
264 table.get(), "android:string/foo", test::ParseConfigOrDie("en-rXA"));
268 EXPECT_NE(std::string::npos, new_styled_string->value->value.find("world"));
270 String* new_string = test::GetValueForConfig<String>(table.get(), "android:string/bar",
275 EXPECT_NE(std::string::npos, new_string->value->find("world"));