X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/c15969fd0a6280c60d2f35876b5343004fed2b11..8a81192b83961beebb4698b63e122e754ef40ada:/String.hpp diff --git a/String.hpp b/String.hpp index e9a0dbe..7256fe5 100644 --- a/String.hpp +++ b/String.hpp @@ -31,6 +31,12 @@ struct CYUTF8String { const char *data; size_t size; + CYUTF8String() : + data(NULL), + size(0) + { + } + CYUTF8String(const char *data) : data(data), size(strlen(data)) @@ -69,7 +75,7 @@ size_t CYGetIndex(const CYUTF8String &value); bool CYIsKey(CYUTF8String value); bool CYGetOffset(const char *value, ssize_t &index); -CYUTF8String CYPoolUTF8String(apr_pool_t *pool, CYUTF16String utf16); -CYUTF16String CYPoolUTF16String(apr_pool_t *pool, CYUTF8String utf8); +CYUTF8String CYPoolUTF8String(CYPool &pool, CYUTF16String utf16); +CYUTF16String CYPoolUTF16String(CYPool &pool, CYUTF8String utf8); #endif/*CYCRIPT_STRING_HPP*/