diff options
| author | 2015-11-02 16:10:55 -0800 | |
|---|---|---|
| committer | 2015-11-02 16:56:34 -0800 | |
| commit | 2ae4a877d1623f851040ce69239552c873f1abf0 (patch) | |
| tree | b13fd89771d05c8f5471218695c9eff5ab287b23 /tools/aapt2/ResourceUtils.h | |
| parent | 3b4cd94034ff3e5567a2ba6da35d640ff61db4b9 (diff) | |
AAPT2: Add Manifest fixing/validation
Change-Id: I7f6d8b74d1c590adc356b4da55cb6cb777cdf1da
Diffstat (limited to 'tools/aapt2/ResourceUtils.h')
| -rw-r--r-- | tools/aapt2/ResourceUtils.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/aapt2/ResourceUtils.h b/tools/aapt2/ResourceUtils.h index 118a2ee9d769..3c532de9060a 100644 --- a/tools/aapt2/ResourceUtils.h +++ b/tools/aapt2/ResourceUtils.h @@ -49,6 +49,11 @@ bool tryParseReference(const StringPiece16& str, ResourceNameRef* outReference, bool* outCreate = nullptr, bool* outPrivate = nullptr); /* + * Returns true if the string is in the form of a resource reference (@[+][package:]type/name). + */ +bool isReference(const StringPiece16& str); + +/* * Returns true if the string was parsed as an attribute reference (?[package:]type/name), * with `outReference` set to the parsed reference. */ |