| 674 | struct Utf8Length { |
| 675 | template <typename OutValue, typename Arg0Value = std::string_view> |
| 676 | static OutValue Call(KernelContext*, Arg0Value val, Status*) { |
| 677 | auto str = reinterpret_cast<const uint8_t*>(val.data()); |
| 678 | auto strlen = val.size(); |
| 679 | return static_cast<OutValue>(util::UTF8Length(str, str + strlen)); |
| 680 | } |
| 681 | }; |
| 682 | |
| 683 | const FunctionDoc utf8_length_doc( |
nothing calls this directly
no test coverage detected