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

Method NoQuoteInArray

cpp/src/arrow/csv/writer.cc:429–433  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

427 // Returns true if there's no quote in the string array
428 template <typename StringArrayType>
429 static bool NoQuoteInArray(const StringArrayType& array) {
430 const uint8_t* data = array.raw_data() + array.value_offset(0);
431 const int64_t buffer_size = array.total_values_length();
432 return std::memchr(data, '"', buffer_size) == nullptr;
433 }
434
435 // Older version of GCC don't support custom allocators
436 // at some point we should change this to use memory_pool

Callers

nothing calls this directly

Calls 3

raw_dataMethod · 0.80
total_values_lengthMethod · 0.80
value_offsetMethod · 0.45

Tested by

no test coverage detected