diff options
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 a0fbcc6e700b..3a03caf04c77 100644 --- a/tools/aapt2/ResourceUtils.h +++ b/tools/aapt2/ResourceUtils.h @@ -79,6 +79,11 @@ bool isAttributeReference(const StringPiece16& str); */ bool tryParseBool(const StringPiece16& str, bool* outValue); +/** + * Parses an SDK version, which can be an integer, or a letter from A-Z. + */ +Maybe<int> tryParseSdkVersion(const StringPiece16& str); + /* * Returns a Reference, or None Maybe instance if the string `str` was parsed as a * valid reference to a style. |