| 492 | } |
| 493 | |
| 494 | void StringFunctions::ReplaceClose(FunctionContext* context, |
| 495 | FunctionContext::FunctionStateScope scope) { |
| 496 | if (scope != FunctionContext::FRAGMENT_LOCAL) return; |
| 497 | ReplaceContext* rptr = reinterpret_cast<ReplaceContext*> |
| 498 | (context->GetFunctionState(FunctionContext::FRAGMENT_LOCAL)); |
| 499 | context->Free(reinterpret_cast<uint8_t*>(rptr)); |
| 500 | context->SetFunctionState(scope, nullptr); |
| 501 | } |
| 502 | |
| 503 | StringVal StringFunctions::Replace(FunctionContext* context, const StringVal& str, |
| 504 | const StringVal& pattern, const StringVal& replace) { |
nothing calls this directly
no test coverage detected