summaryrefslogtreecommitdiff
path: root/CyteKit/RegEx.hpp
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2019-05-19 17:01:27 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2019-05-19 17:01:27 -0700
commit2e362598168e73f935146b3b7ec4318390651cc6 (patch)
tree2649af4ce6f0f826dbcb248661cb7ac3c2551ffe /CyteKit/RegEx.hpp
parent136cc0a23da9281874ee88b7b51174538fcb9269 (diff)
Swap awkward va_list hack for awkward switch hack.
Diffstat (limited to 'CyteKit/RegEx.hpp')
-rw-r--r--CyteKit/RegEx.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/CyteKit/RegEx.hpp b/CyteKit/RegEx.hpp
index 40068a7..7ff08df 100644
--- a/CyteKit/RegEx.hpp
+++ b/CyteKit/RegEx.hpp
@@ -25,7 +25,7 @@
#include <unicode/uregex.h>
#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<va_list>(values)] autorelease];
+ return [NSString stringWithFormat:format :capture_ :values];
}
};