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

Function FormatNonUTF8Value

cpp/src/parquet/types.cc:165–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

FormatStatValueFunction · 0.85

Calls 2

strMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected