X-Git-Url: https://git.saurik.com/android/aapt.git/blobdiff_plain/094e8965da798efa6625ccfc32aa2909e206de9c..2cf27f26cea20a0d9bc495a79885a831911d1fc7:/StringPool.cpp?ds=sidebyside diff --git a/StringPool.cpp b/StringPool.cpp index 51afc0a..a09cec0 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 #%ld: %s\n", s, str); } }