15f70a1451e9791fc080647cb8d913a5a6e0aa3b kent Wed May 31 18:17:40 2017 -0700 Adding csvNeedsParsing diff --git src/inc/csv.h src/inc/csv.h index d4bcdce..2e3437a 100644 --- src/inc/csv.h +++ src/inc/csv.h @@ -10,17 +10,21 @@ * will be dy*/ void csvWriteVal(char *val, FILE *f); /* Write val, which may have some quotes or commas in it, in a way to be compatable with * csv list representation */ char *csvParseNext(char **pos, struct dyString *scratch); /* Return next value starting at pos, putting results into scratch and * returning scratch->string or NULL if no values left. Will update *pos * to after trailing comma if any. This will tolerate and ignore leading * and trailing white space. * Since an empty or all-white string is will return NULL, if you * want empty strings to be a legitimate value then they have to be quoted * or followed by a comma. */ +boolean csvNeedsParsing(char *s); +/* Return TRUE if s is something that needs parsing through the csv parser. That + * is it either starts with a quote or has a comma */ + #endif /* CSV_H */