diff options
| author | 2016-08-25 12:26:56 -0700 | |
|---|---|---|
| committer | 2016-08-31 18:32:34 -0700 | |
| commit | 5eeaaddffd23d8d85aeb321e3ceea626e42cf9de (patch) | |
| tree | dcd102c0f14825c34c2251427db84e48cb11d8a7 /tools/aapt2/ResourceUtils.h | |
| parent | 79758c8e7706f3cce265a881cc66df8771d3c456 (diff) | |
AAPT2: Add Inline Complex XML support
See: https://developer.android.com/guide/topics/resources/complex-xml-resources.html
Change-Id: I8274c85e25cabf90423141c228697e873167d136
Diffstat (limited to 'tools/aapt2/ResourceUtils.h')
| -rw-r--r-- | tools/aapt2/ResourceUtils.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/aapt2/ResourceUtils.h b/tools/aapt2/ResourceUtils.h index 244047bae117..555203b84393 100644 --- a/tools/aapt2/ResourceUtils.h +++ b/tools/aapt2/ResourceUtils.h @@ -111,6 +111,14 @@ Maybe<int> parseSdkVersion(const StringPiece& str); Maybe<Reference> parseStyleParentReference(const StringPiece& str, std::string* outError); /* + * Returns a Reference if the string `str` was parsed as a valid XML attribute name. + * The valid format for an XML attribute name is: + * + * package:entry + */ +Maybe<Reference> parseXmlAttributeName(const StringPiece& str); + +/* * Returns a Reference object if the string was parsed as a resource or attribute reference, * ( @[+][package:]type/name | ?[package:]type/name ) setting outCreate to true if * the '+' was present in the string. |