diff options
author | Benjamin Barenblat <bbaren@mit.edu> | 2015-07-30 17:43:39 -0400 |
---|---|---|
committer | Benjamin Barenblat <bbaren@mit.edu> | 2015-07-30 17:43:39 -0400 |
commit | 752b1fe51666166eb5f1df593edfa68324077af0 (patch) | |
tree | c13eaec2a50cd855cb04bafe4c5cf56405c0ffbf /src/regex__FFI.cc | |
parent | 655f2bc59e11ccd16229f2e7474b013e585192fb (diff) |
Correct order of arguments to Regex.replace
Diffstat (limited to 'src/regex__FFI.cc')
-rw-r--r-- | src/regex__FFI.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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; |