OSDN Git Service

AAPT2: Fix string escaping
authorAdam Lesinski <adamlesinski@google.com>
Wed, 26 Apr 2017 22:13:52 +0000 (15:13 -0700)
committerAdam Lesinski <adamlesinski@google.com>
Fri, 28 Apr 2017 19:51:23 +0000 (12:51 -0700)
commit48448e8a310e72eb2846ad0f86672ce4f0b47e47
tree42e2d993f2967ba5768530c826aab28eb12fb492
parent0ddca92018da69e7224b63cdedbf1944c63ddc34
AAPT2: Fix string escaping

We were processing escaped strings too early, before
parsing of values into types. Now the escaped strings get
processed when they are being flattened.

Bug: 37715376
Test: make aapt2_tests
Change-Id: Ic59aa2e3a20c40756c219752ff74b2a4f8a602ba
tools/aapt2/flatten/XmlFlattener.cpp
tools/aapt2/flatten/XmlFlattener_test.cpp
tools/aapt2/link/XmlReferenceLinker_test.cpp
tools/aapt2/xml/XmlDom.cpp
tools/aapt2/xml/XmlDom_test.cpp