Skip to content

parseRow() efficiency + related realloc fix

Compare
Choose a tag to compare
@michalmonday michalmonday released this 05 Oct 20:21
· 9 commits to master since this release

Modified examples show how to efficiently parse row by row:
https://github.com/michalmonday/CSV-Parser-for-Arduino/tree/master/examples/parsing_row_by_row
https://github.com/michalmonday/CSV-Parser-for-Arduino/tree/master/examples/parsing_row_by_row_sd_card

Lack of values initialization made it impossible to get pointer to values before the first cp.parseRow(), this got fixed in this release.
Integer based indexing should be used to get pointer to values when using row by row parsing (because header is parsed after the first call of parseRow). See examples from links above for more details about correct usage.