diff options
| author | 2015-11-03 12:24:17 -0800 | |
|---|---|---|
| committer | 2015-11-03 12:58:12 -0800 | |
| commit | b23f1e077b02a1d62bcf5e34655e8dc979e124fa (patch) | |
| tree | 854c4a7afe2e62e9ead4a10ce17422e3923a1502 /tools/aapt2/ResourceUtils.h | |
| parent | 2ae4a877d1623f851040ce69239552c873f1abf0 (diff) | |
AAPT2: Verify positional Java String format arguments in strings
Change-Id: Id415969035a0d5712857c0e11e140155566a960c
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 3c532de9060a..851edc89fa90 100644 --- a/tools/aapt2/ResourceUtils.h +++ b/tools/aapt2/ResourceUtils.h @@ -59,6 +59,11 @@ bool isReference(const StringPiece16& str); */ bool tryParseAttributeReference(const StringPiece16& str, ResourceNameRef* outReference); +/** + * Returns true if the value is a boolean, putting the result in `outValue`. + */ +bool tryParseBool(const StringPiece16& str, bool* outValue); + /* * Returns a Reference, or None Maybe instance if the string `str` was parsed as a * valid reference to a style. |