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

Function Escape

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

Copies the contents of s to out properly escaping any necessary characters. Returns the position next to last copied character.

Source from the content-addressed store, hash-verified

168// Copies the contents of s to out properly escaping any necessary characters.
169// Returns the position next to last copied character.
170char* Escape(std::string_view s, char* out) {
171 for (const char c : s) {
172 *out++ = c;
173 if (c == '"') {
174 *out++ = '"';
175 }
176 }
177 return out;
178}
179
180// Return the index of the first structural char in the input. A structural char
181// is a character that needs quoting and/or escaping.

Callers 4

PopulateRowsMethod · 0.70
WriteHeaderMethod · 0.70
VisitMethod · 0.50
PrintDatumFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected