| 776 | } |
| 777 | |
| 778 | void StringFunctions::TrimClose( |
| 779 | FunctionContext* context, FunctionContext::FunctionStateScope scope) { |
| 780 | if (scope != FunctionContext::THREAD_LOCAL) return; |
| 781 | TrimContext* trim_ctx = |
| 782 | reinterpret_cast<TrimContext*>(context->GetFunctionState(scope)); |
| 783 | delete trim_ctx; |
| 784 | context->SetFunctionState(scope, nullptr); |
| 785 | } |
| 786 | |
| 787 | template <StringFunctions::TrimPosition D, bool IS_IMPLICIT_WHITESPACE> |
| 788 | StringVal StringFunctions::DoTrimString(FunctionContext* ctx, |
nothing calls this directly
no test coverage detected