-/* Cycript - Optimizing JavaScript Compiler/Runtime
- * Copyright (C) 2009-2015 Jay Freeman (saurik)
+/* Cycript - The Truly Universal Scripting Language
+ * Copyright (C) 2009-2016 Jay Freeman (saurik)
*/
/* GNU Affero General Public License, Version 3 {{{ */
return length == size && memcmp(value, data, length) == 0;
}
+ bool operator !=(const char *value) const {
+ size_t length(strlen(data));
+ return length != size || memcmp(value, data, length) != 0;
+ }
+
operator std::string() const {
return std::string(data, size);
}
bool CYStartsWith(const CYUTF8String &haystack, const CYUTF8String &needle);
+const char *CYPoolCString(CYPool &pool, CYUTF8String utf8);
+CYUTF8String CYPoolUTF8String(CYPool &pool, CYUTF8String utf8);
+CYUTF8String CYPoolUTF8String(CYPool &pool, const std::string &value);
+
CYUTF8String CYPoolUTF8String(CYPool &pool, CYUTF16String utf16);
CYUTF16String CYPoolUTF16String(CYPool &pool, CYUTF8String utf8);