| 1347 | {"strings"}, "SliceOptions", /*options_required=*/true); |
| 1348 | |
| 1349 | void AddUtf8StringSlice(FunctionRegistry* registry) { |
| 1350 | auto func = std::make_shared<ScalarFunction>("utf8_slice_codeunits", Arity::Unary(), |
| 1351 | utf8_slice_codeunits_doc); |
| 1352 | for (const auto& ty : StringTypes()) { |
| 1353 | auto exec = GenerateTypeAgnosticVarBinaryBase<SliceCodeunits>(ty); |
| 1354 | DCHECK_OK( |
| 1355 | func->AddKernel({ty}, ty, std::move(exec), SliceCodeunitsTransform::State::Init)); |
| 1356 | } |
| 1357 | DCHECK_OK(registry->AddFunction(std::move(func))); |
| 1358 | } |
| 1359 | |
| 1360 | // ---------------------------------------------------------------------- |
| 1361 | // Split by whitespace |
no test coverage detected