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.
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.