MCPcopy Create free account
hub / github.com/apache/arrow / Call

Method Call

cpp/src/arrow/compute/kernels/scalar_string_utf8.cc:676–680  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

674struct 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
683const FunctionDoc utf8_length_doc(

Callers

nothing calls this directly

Calls 3

UTF8LengthFunction · 0.85
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected