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

Method Call

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

Source from the content-addressed store, hash-verified

664struct 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
673const 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