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

Function FormatNonUTF8Value

cpp/src/parquet/types.cc:162–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

FormatStatValueFunction · 0.85

Calls 2

strMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected