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

Function FormatNonUTF8Value

cpp/src/parquet/types.cc:161–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159}
160
161std::string FormatNonUTF8Value(::std::string_view val) {
162 if (val.empty()) {
163 return "";
164 }
165
166 std::stringstream result;
167 result << "0x" << std::hex;
168 for (const auto& c : val) {
169 result << std::setw(2) << std::setfill('0')
170 << static_cast<int>(static_cast<unsigned char>(c));
171 }
172 return result.str();
173}
174
175std::string FormatFloat16Value(::std::string_view val) {
176 std::stringstream result;

Callers 1

FormatStatValueFunction · 0.85

Calls 2

strMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected