Skip to main content
Code Review

Return to Answer

replaced https://tools.ietf.org/html/rfc with https://www.rfc-editor.org/rfc/rfc
Source Link

For proper field handling, you may want to look at RFC4180 - Common Format and MIME Type for Comma-Separated Values (CSV) Files RFC4180 - Common Format and MIME Type for Comma-Separated Values (CSV) Files if you plan to make a generalized CSV reader.

field_1,"field, two","""field""_3" CRLF
^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^
 field field field optional for last record

If you want to reduce the number of allocations, consider writing a range-view that lazily scans each field from C++ ranges/containers or even memory-mapped files.

For proper field handling, you may want to look at RFC4180 - Common Format and MIME Type for Comma-Separated Values (CSV) Files if you plan to make a generalized CSV reader.

field_1,"field, two","""field""_3" CRLF
^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^
 field field field optional for last record

If you want to reduce the number of allocations, consider writing a range-view that lazily scans each field from C++ ranges/containers or even memory-mapped files.

For proper field handling, you may want to look at RFC4180 - Common Format and MIME Type for Comma-Separated Values (CSV) Files if you plan to make a generalized CSV reader.

field_1,"field, two","""field""_3" CRLF
^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^
 field field field optional for last record

If you want to reduce the number of allocations, consider writing a range-view that lazily scans each field from C++ ranges/containers or even memory-mapped files.

Source Link
Snowhawk
  • 6.8k
  • 1
  • 19
  • 37

For proper field handling, you may want to look at RFC4180 - Common Format and MIME Type for Comma-Separated Values (CSV) Files if you plan to make a generalized CSV reader.

field_1,"field, two","""field""_3" CRLF
^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^
 field field field optional for last record

If you want to reduce the number of allocations, consider writing a range-view that lazily scans each field from C++ ranges/containers or even memory-mapped files.

lang-cpp

AltStyle によって変換されたページ (->オリジナル) /