X-Git-Url: https://git.saurik.com/android/aapt.git/blobdiff_plain/59302c96c6ad1258529cdf052d4a4a71d474e85d..3c8a9401edb6b5e23e9f4d1c2a3c5e0239020b08:/StringPool.cpp diff --git a/StringPool.cpp b/StringPool.cpp index 51afc0a..e28bdff 100644 --- a/StringPool.cpp +++ b/StringPool.cpp @@ -25,8 +25,12 @@ void printStringPool(const ResStringPool* pool) const size_t NS = pool->size(); for (size_t s=0; sstringAt(s, &len)).string()); + const char *str = (const char*)pool->string8At(s, &len); + if (str == NULL) { + str = String8(pool->stringAt(s, &len)).string(); + } + + printf("String #%d: %s\n", s, str); } }