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

Function EscapeJsonString

cpp/src/parquet/geospatial/util_json_internal.cc:186–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184}
185
186::arrow::Result<std::string> EscapeJsonString(std::string_view value) {
187 ::arrow::internal::JsonWriter writer;
188 writer.String(value);
189
190 ARROW_ASSIGN_OR_RAISE(auto escaped, writer.GetString());
191 return ::arrow::internal::MinifyJson(escaped);
192}
193
194::arrow::Result<std::string> EscapeCrsAsJsonIfRequired(std::string_view crs) {
195 simdjson::ondemand::parser parser;

Callers 1

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected