Data & serialization
data.h
Read CSV headers and rows, or convert a complete CSV document into values.
#include <mc/data.h>The parser supports quoted fields, escaped quotes, embedded line breaks, and CRLF. Row width must match the header.
Jump to a declaration · 4
Free functions & types
Functions
cCSVHeader
Reads a header, advances the byte offset, and updates the physical line count.
cCSVLine
Reads a row into a destination already sized to the header width. Returns the number of physical lines consumed.
cFromCSV
Returns a vector of rows and writes the header separately. Complete numeric fields become numeric values; other fields remain strings.