| 1062 | } |
| 1063 | |
| 1064 | void StringFunctions::RegexpClose( |
| 1065 | FunctionContext* context, FunctionContext::FunctionStateScope scope) { |
| 1066 | if (scope != FunctionContext::THREAD_LOCAL) return; |
| 1067 | re2::RE2* re = reinterpret_cast<re2::RE2*>(context->GetFunctionState(scope)); |
| 1068 | delete re; |
| 1069 | context->SetFunctionState(scope, nullptr); |
| 1070 | } |
| 1071 | |
| 1072 | StringVal StringFunctions::RegexpEscape(FunctionContext* context, const StringVal& str) { |
| 1073 | if (str.is_null) return StringVal::null(); |
nothing calls this directly
no test coverage detected