Home
last modified time | relevance | path

Searched refs:TrimWhitespace (Results 1 – 16 of 16) sorted by relevance

/frameworks/base/tools/aapt2/
DResourceUtils.cpp155 StringPiece trimmed_str(util::TrimWhitespace(str)); in ParseReference()
205 StringPiece trimmed_str(util::TrimWhitespace(str)); in ParseAttributeReference()
299 StringPiece trimmed_str = util::TrimWhitespace(str); in ParseXmlAttributeName()
346 const StringPiece trimmed_str(util::TrimWhitespace(str)); in TryParseNullOrEmpty()
367 StringPiece trimmed_str(util::TrimWhitespace(str)); in TryParseEnumSymbol()
387 if (util::TrimWhitespace(str).empty()) { in TryParseFlagSymbol()
393 StringPiece trimmed_part = util::TrimWhitespace(part); in TryParseFlagSymbol()
429 StringPiece color_str(util::TrimWhitespace(str)); in TryParseColor()
484 StringPiece trimmed_str(util::TrimWhitespace(str)); in ParseBool()
504 StringPiece trimmed_str(util::TrimWhitespace(str)); in ParseResourceId()
[all …]
DResourceParser.cpp90 StringPiece trimmed_part = util::TrimWhitespace(part); in ParseFormatAttribute()
122 StringPiece trimmed_comment = util::TrimWhitespace(res->comment); in AddResourcesToTable()
437 if (!util::TrimWhitespace(parser->text()).empty()) { in ParseResources()
825 util::TrimWhitespace(xmlsub_tree.raw_value), android::StringPool::Context(config))); in ParseXml()
826 } else if (util::TrimWhitespace(xmlsub_tree.raw_value).empty()) { in ParseXml()
1008 comment = std::string(util::TrimWhitespace(parser->comment())); in ParseGroupImpl()
1250 StringPiece trimmed_part = util::TrimWhitespace(part); in ParseOverlayable()
1327 StringPiece min_str = util::TrimWhitespace(maybe_min_str.value()); in ParseAttrImpl()
1344 StringPiece max_str = util::TrimWhitespace(maybe_max_str.value()); in ParseAttrImpl()
1380 comment = std::string(util::TrimWhitespace(parser->comment())); in ParseAttrImpl()
[all …]
/frameworks/base/tools/aapt2/util/
DFiles.cpp255 line = util::TrimWhitespace(line); in AppendArgsFromFile()
257 arg = util::TrimWhitespace(arg); in AppendArgsFromFile()
277 line = util::TrimWhitespace(line); in AppendSetArgsFromFile()
279 arg = util::TrimWhitespace(arg); in AppendSetArgsFromFile()
DUtil.h70 android::StringPiece TrimWhitespace(android::StringPiece str);
DUtil_test.cpp42 const StringPiece trimmed = util::TrimWhitespace("\n "); in TEST()
DUtil.cpp114 StringPiece TrimWhitespace(StringPiece str) { in TrimWhitespace() function
/frameworks/base/tools/aapt2/java/
DAnnotationProcessor.cpp97 const StringPiece trimmed = util::TrimWhitespace(comment); in AppendCommentLine()
117 line = util::TrimWhitespace(line); in AppendComment()
DJavaClassGenerator.cpp181 << "<td>" << util::TrimWhitespace(symbol.symbol.GetComment()) in AddAttributeFormatDoc()
/frameworks/base/tools/aapt2/configuration/
DConfigurationParser.cpp71 using ::aapt::util::TrimWhitespace;
522 config->artifact_format.emplace(TrimWhitespace(t->text)); in ArtifactFormatTagHandler()
564 auto abi = kStringToAbiMap.find(TrimWhitespace(t->text)); in AbiGroupTagHandler()
625 android::StringPiece text = TrimWhitespace(t->text); in ScreenDensityGroupTagHandler()
691 android::StringPiece text = TrimWhitespace(t->text); in LocaleGroupTagHandler()
809 result.texture_paths.emplace_back(TrimWhitespace(t->text)); in GlTextureGroupTagHandler()
846 group.emplace_back(TrimWhitespace(t->text)); in DeviceFeatureGroupTagHandler()
/frameworks/base/tools/aapt2/link/
DFeatureFlagsFilter.cpp60 std::string_view flag_name = util::TrimWhitespace(attr->value); in ShouldRemove()
/frameworks/base/tools/aapt2/xml/
DXmlPullParser.cpp312 return StringPiece(util::TrimWhitespace(iter->value)); in FindAttribute()
320 StringPiece trimmed = util::TrimWhitespace(iter->value); in FindNonEmptyAttribute()
/frameworks/base/tools/aapt2/cmd/
DUtil.cpp135 StringPiece flag_name = util::TrimWhitespace(parts[0]); in ParseFeatureFlagsParameter()
143 StringPiece str_flag_value = util::TrimWhitespace(parts[1]); in ParseFeatureFlagsParameter()
504 line = util::TrimWhitespace(line); in ParseResourceConfig()
DLink.cpp726 line = util::TrimWhitespace(line); in LoadStableIdMap()
739 util::TrimWhitespace(line.substr(0, std::distance(line.begin(), iter))); in LoadStableIdMap()
748 StringPiece res_id_str = util::TrimWhitespace(line.substr(res_id_start_idx, res_id_str_len)); in LoadStableIdMap()
/frameworks/base/tools/aapt2/compile/
DInlineXmlFormatParser.cpp141 if (!util::TrimWhitespace(t->text).empty()) { in Consume()
/frameworks/base/tools/aapt2/format/binary/
DXmlFlattener.cpp82 std::string text(util::TrimWhitespace(node->text)); in Visit()
/frameworks/base/tools/aapt2/format/proto/
DProtoSerialize.cpp787 if (options.remove_empty_text_nodes && util::TrimWhitespace(text_el->text).empty()) { in SerializeXmlToPb()