Lines Matching defs:string
51 } else if (piece == "string") {
95 std::string product;
103 std::string comment;
175 // Base class Node for representing the various Spans and UntranslatableSections of an XML string.
176 // This will be used to traverse and flatten the XML string into a single std::string, with all
177 // Span and Untranslatable data maintained in parallel, as indices into the string.
201 // A chunk of text in the XML string. This lives between other tags, such as XLIFF tags and Spans.
204 std::string data;
211 // A tag that will be encoded into the final flattened string. Tags like <b> or <i>.
214 std::string name;
223 // An XLIFF 'g' tag, which marks a section of the string as untranslatable.
233 // Build a string from XML that converts nested elements into Span objects.
235 xml::XmlPullParser* parser, std::string* out_raw_string, StyleString* out_style_string,
237 std::string raw_string;
238 std::string current_text;
347 // If there were no spans, we must treat this string a little differently (according to AAPT).
415 std::string comment;
440 std::string element_name = parser->element_name();
490 static const auto elToItemMap = ImmutableMap<std::string, ItemTypeFormat>::CreatePreSorted({
504 {"string", {ResourceType::kString, android::ResTable_map::TYPE_STRING}},
507 static const auto elToBagMap = ImmutableMap<std::string, BagParseFunc>::CreatePreSorted({
521 {"string-array", std::mem_fn(&ResourceParser::ParseStringArray)},
527 std::string resource_type = parser->element_name();
725 std::string raw_value;
760 // Try making a regular string.
762 // Use the trimmed, escaped string.
763 std::unique_ptr<String> string = util::make_unique<String>(
765 string->untranslatable_sections = std::move(untranslatable_sections);
766 return std::move(string);
769 // If the text is empty, and the value is not allowed to be a string, encode it as a @null.
811 diag_->Error(DiagMessage(out_resource->source) << "not a valid string");
921 std::string comment;
934 const std::string& element_namespace = parser->element_namespace();
935 const std::string& element_name = parser->element_name();
1040 const std::string& element_namespace = parser->element_namespace();
1041 const std::string& element_name = parser->element_name();
1173 std::string comment;
1186 const std::string& element_namespace = parser->element_namespace();
1187 const std::string& element_name = parser->element_name();
1326 std::string err_str;
1340 std::string style_name = out_resource->name.entry;
1342 if (pos != std::string::npos) {
1356 const std::string& element_namespace = parser->element_namespace();
1357 const std::string& element_name = parser->element_name();
1425 const std::string& element_namespace = parser->element_namespace();
1426 const std::string& element_name = parser->element_name();
1468 const std::string& element_namespace = parser->element_namespace();
1469 const std::string& element_name = parser->element_name();
1550 std::string comment;
1563 const std::string& element_namespace = parser->element_namespace();
1564 const std::string& element_name = parser->element_name();