Searched refs:new_string (Results 1 - 2 of 2) sorted by relevance
/frameworks/base/tools/aapt2/compile/ |
H A D | PseudolocaleGenerator_test.cpp | 30 std::unique_ptr<StyledString> new_string = PseudolocalizeStyledString( local 34 EXPECT_EQ(original_style.str, new_string->value->value); 35 ASSERT_EQ(original_style.spans.size(), new_string->value->spans.size()); 37 EXPECT_EQ(std::string("i"), *new_string->value->spans[0].name); 38 EXPECT_EQ(std::u16string(u"H").size(), new_string->value->spans[0].first_char); 39 EXPECT_EQ(std::u16string(u"Hello worl").size(), new_string->value->spans[0].last_char); 41 EXPECT_EQ(std::string("b"), *new_string->value->spans[1].name); 42 EXPECT_EQ(std::u16string(u"He").size(), new_string->value->spans[1].first_char); 43 EXPECT_EQ(std::u16string(u"Hel").size(), new_string->value->spans[1].last_char); 45 EXPECT_EQ(std::string("b"), *new_string 77 std::unique_ptr<StyledString> new_string = PseudolocalizeStyledString( local 99 std::unique_ptr<StyledString> new_string = PseudolocalizeStyledString( local 122 std::unique_ptr<StyledString> new_string = PseudolocalizeStyledString( local 163 std::unique_ptr<StyledString> new_string = local 270 String* new_string = test::GetValueForConfig<String>(table.get(), "android:string/bar", local [all...] |
H A D | PseudolocaleGenerator.cpp | 129 std::string new_string = localizer.Start(); local 138 uint32_t new_cursor = utf8_to_utf16_length(reinterpret_cast<const uint8_t*>(new_string.data()), 139 new_string.size(), false); 162 new_string += new_substr; 189 new_string += new_substr; 201 new_string += localizer.Text(util::Utf16ToUtf8(text.substr(cursor, text.size() - cursor))); 202 new_string += localizer.End(); 205 localized.str = std::move(new_string);
|
Completed in 34 milliseconds