diff options
author | Adam Lesinski <adamlesinski@google.com> | 2016-02-04 15:59:23 -0800 |
---|---|---|
committer | Adam Lesinski <adamlesinski@google.com> | 2016-02-09 19:59:17 +0000 |
commit | 59e04c6f92da584b322c87072f18e6cab4de4c60 (patch) | |
tree | c08dd13ae57f9b6000441035201f226d532f8896 /tools/aapt2/ResourceUtils.cpp | |
parent | 41466449aae2d304cf05680f5adbf44312d7a65e (diff) |
AAPT2: Switch to protobuf for intermediate format
Without needing to conform to the runtime data format,
it is much easier to add new features such as debugging symbols
and carrying over product data to link time.
This also simplifies the runtime format parser and serializer,
which will change much less frequently than the protobuf intermediate
format.
Change-Id: I209787bbf087db0a58a534cb8511c51d21133e00
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 07f62afe05b9..74c48b0f8426 100644 --- a/tools/aapt2/ResourceUtils.cpp +++ b/tools/aapt2/ResourceUtils.cpp @@ -51,6 +51,10 @@ bool extractResourceName(const StringPiece16& str, StringPiece16* outPackage, } bool parseResourceName(const StringPiece16& str, ResourceNameRef* outRef, bool* outPrivate) { + if (str.empty()) { + return false; + } + size_t offset = 0; bool priv = false; if (str.data()[0] == u'*') { |