cpp/src/arrow/csv/writer.cc
char* EscapeReverse(arrow::util::string_view s, char* out_end) {
  for (const char* val = s.data() + s.length() - 1; val >= s.data(); val--, out_end--) {
    if (*val == '"') {
      *out_end = *val;
      out_end--;
    }
    *out_end = *val;
  }
  return out_end;
}
// Copies the contents of to out properly escaping any necessary characters.
// Returns the position prior to last copied character (out_end is decremented).
Copies the contents of to out properly escaping any necessary characters.
Returns the position prior to last copied character (out_end is decremented).
Copies the contents of to out properly escaping any necessary characters . Returns the position prior to last copied character ( out_end is decremented ) .
char* EscapeReverse(arrow::util::string_view s, char* out_end) {
  for (const char* val = s.data() + s.length() - 1; val >= s.data(); val--, out_end--) {
    if (*val == '"') {
      *out_end = *val;
      out_end--;
    }
    *out_end = *val;
  }
  return out_end;
}
char * EscapeReverse ( arrow :: util :: string_view s , char * out_end ) { for ( const char * val = s . data ( ) + s . length ( ) - 1 ; val >= s . data ( ) ; val -- , out_end -- ) { if ( * val == ' ' ) { * out_end = * val ; out_end -- ; } * out_end = * val ; } return out_end ; }
Copies the contents of to out properly escaping any necessary characters.
Copies the contents of to out properly escaping any necessary characters .