| 664 | struct Utf8Length { |
| 665 | template <typename OutValue, typename Arg0Value = std::string_view> |
| 666 | static OutValue Call(KernelContext*, Arg0Value val, Status*) { |
| 667 | auto str = reinterpret_cast<const uint8_t*>(val.data()); |
| 668 | auto strlen = val.size(); |
| 669 | return static_cast<OutValue>(util::UTF8Length(str, str + strlen)); |
| 670 | } |
| 671 | }; |
| 672 | |
| 673 | const FunctionDoc utf8_length_doc( |
nothing calls this directly
no test coverage detected