| 27 | |
| 28 | struct RegexpReplace { |
| 29 | static void operation(string_t& value, string_t& pattern, string_t& replacement, |
| 30 | string_t& result, common::ValueVector& resultValueVector, void* dataPtr) { |
| 31 | auto bindData = reinterpret_cast<RegexReplaceBindData*>(dataPtr); |
| 32 | std::string resultStr = value.getAsString(); |
| 33 | RE2 re2Pattern{pattern.getAsString()}; |
| 34 | bindData->replaceFunc(&resultStr, re2Pattern, replacement.getAsString()); |
| 35 | BaseRegexpOperation::copyToLbugString(resultStr, result, resultValueVector); |
| 36 | } |
| 37 | }; |
| 38 | |
| 39 | struct RegexReplaceBindDataStaticPattern : public RegexReplaceBindData { |
nothing calls this directly
no test coverage detected