diff options
| author | 2018-02-15 05:46:47 +0000 | |
|---|---|---|
| committer | 2018-02-15 05:46:47 +0000 | |
| commit | 237b1d0cf699c6e9fe3f59ac00d1167227e52a80 (patch) | |
| tree | d3ca94a50aa83003e77eda7c52606b301836e30b /tools/aapt2/ResourceUtils.cpp | |
| parent | 6467e98270a96c2fe5ff3680804c5ffa90df946d (diff) | |
| parent | d05b9130fdbff8062084b566a380c5b058273d75 (diff) | |
Merge changes I2f594c22,I37a2b8b8
* changes:
AAPT2: Fix compatible-screens element in AndroidManifest.xml
AAPT2: Add order attribute to groups
Diffstat (limited to 'tools/aapt2/ResourceUtils.cpp')
| -rw-r--r-- | tools/aapt2/ResourceUtils.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/aapt2/ResourceUtils.cpp b/tools/aapt2/ResourceUtils.cpp index 02ac86c94b46..628466d0a281 100644 --- a/tools/aapt2/ResourceUtils.cpp +++ b/tools/aapt2/ResourceUtils.cpp @@ -520,6 +520,10 @@ std::unique_ptr<BinaryPrimitive> TryParseInt(const StringPiece& str) { return util::make_unique<BinaryPrimitive>(value); } +std::unique_ptr<BinaryPrimitive> MakeInt(uint32_t val) { + return util::make_unique<BinaryPrimitive>(android::Res_value::TYPE_INT_DEC, val); +} + std::unique_ptr<BinaryPrimitive> TryParseFloat(const StringPiece& str) { std::u16string str16 = util::Utf8ToUtf16(util::TrimWhitespace(str)); android::Res_value value; |