Simple CSV is a C++ library for parsing CSV. The design goals for the library are as follows:
- No dynamic memory allocation
- No use of exceptions
- Small code size (~1 KByte added)
- Low stack usage (~100 bytes)
- Few dependencies
This library is currently in alpha.
Put the files from the include directory in your project and include scsv.hpp.
The included examples use cstdio and printf, and should run on even very limited microcontrollers. How the values are used is of course up to you.
The library does not have any external dependencies and should build as long as your platform library provides:
- size_t
- strtol()
- strtod()
- Support for custom field separators
- Support for both quoted and unquoted strings
- Support for quotes inside string values with ""
- Expects well-formed CSV
- Limited support for UTF-8
- No support for UTF-16
- Decimal separators other than dot
- Support for \" quote escaping
- Byte by byte parsing (e.g. from a stream)