parse_index
if (parse_index(date2+len, &di->index)) {
if (parse_index(p2+len, &di->index)) {
static bool parse_index(const char *s, int *index);