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

Method MakeFilter

cpp/src/arrow/csv/lexing_internal.h:187–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185 using BulkFilterType = __m128i;
186
187 BulkFilterType MakeFilter(const ParseOptions& options) {
188 // Make a SIMD word of the characters we want to match
189 const char cr = '\r';
190 const char lf = '\n';
191 const char delim = options.delimiter;
192 const char quote = SpecializedOptions::quoting ? options.quote_char : cr;
193 const char escape = SpecializedOptions::escaping ? options.escape_char : cr;
194
195 return _mm_set_epi8(delim, quote, escape, lf, cr, cr, cr, cr, cr, cr, cr, cr, cr, cr,
196 cr, cr);
197 }
198
199 const BulkFilterType filter_;
200};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected