| 687 | {"strings"}); |
| 688 | |
| 689 | void AddUtf8StringLength(FunctionRegistry* registry) { |
| 690 | auto func = |
| 691 | std::make_shared<ScalarFunction>("utf8_length", Arity::Unary(), utf8_length_doc); |
| 692 | { |
| 693 | auto exec = applicator::ScalarUnaryNotNull<Int32Type, StringType, Utf8Length>::Exec; |
| 694 | DCHECK_OK(func->AddKernel({utf8()}, int32(), std::move(exec))); |
| 695 | } |
| 696 | { |
| 697 | auto exec = |
| 698 | applicator::ScalarUnaryNotNull<Int64Type, LargeStringType, Utf8Length>::Exec; |
| 699 | DCHECK_OK(func->AddKernel({large_utf8()}, int64(), std::move(exec))); |
| 700 | } |
| 701 | DCHECK_OK(registry->AddFunction(std::move(func))); |
| 702 | } |
| 703 | |
| 704 | // ---------------------------------------------------------------------- |
| 705 | // String reversal |
no test coverage detected