summaryrefslogtreecommitdiff
path: root/tools/aapt2/ResourceUtils.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/aapt2/ResourceUtils.h')
-rw-r--r--tools/aapt2/ResourceUtils.h5
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.