X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/f4f6714a329bf399840b3f9991b310bd17f7bed6..2e362598168e73f935146b3b7ec4318390651cc6:/CyteKit/RegEx.hpp diff --git a/CyteKit/RegEx.hpp b/CyteKit/RegEx.hpp index 40068a77..7ff08dfa 100644 --- a/CyteKit/RegEx.hpp +++ b/CyteKit/RegEx.hpp @@ -25,7 +25,7 @@ #include #include "CyteKit/UCPlatform.h" -#include "CyteKit/stringWithUTF8Bytes.h" +#include "CyteKit/stringWith.h" #define _rgxcall(code, args...) ({ \ UErrorCode status(U_ZERO_ERROR); \ @@ -124,7 +124,7 @@ class RegEx { id values[capture_]; for (int i(0); i != capture_; ++i) values[i] = this->operator [](i + 1); - return [[[NSString alloc] initWithFormat:format arguments:reinterpret_cast(values)] autorelease]; + return [NSString stringWithFormat:format :capture_ :values]; } };