From 752b1fe51666166eb5f1df593edfa68324077af0 Mon Sep 17 00:00:00 2001 From: Benjamin Barenblat Date: Thu, 30 Jul 2015 17:43:39 -0400 Subject: Correct order of arguments to Regex.replace --- src/regex__FFI.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/regex__FFI.cc') diff --git a/src/regex__FFI.cc b/src/regex__FFI.cc index 57d4ce8..e3ff601 100644 --- a/src/regex__FFI.cc +++ b/src/regex__FFI.cc @@ -151,8 +151,8 @@ uw_Regex__FFI_match uw_Regex__FFI_do_match(uw_context* const context, uw_Basis_string uw_Regex__FFI_replace(uw_context* const context, const uw_Basis_string needle_string, - const uw_Basis_string haystack, - const uw_Basis_string replacement) { + const uw_Basis_string replacement, + const uw_Basis_string haystack) { std::regex needle = Compile(context, needle_string); // Perform the replacement. std::string result; -- cgit v1.2.3