| int match_fname2 = -1; | int match_fname2 = -1; | ||||
| int match_name = -1; | int match_name = -1; | ||||
| const char *id; // this is the filename within espeak-ng-data/voices | const char *id; // this is the filename within espeak-ng-data/voices | ||||
| char *variant_name; | |||||
| int last_part_len; | int last_part_len; | ||||
| char last_part[41]; | char last_part[41]; | ||||
| char name[40]; | char name[40]; | ||||
| } | } | ||||
| strncpy0(name, name2, sizeof(name)); | strncpy0(name, name2, sizeof(name)); | ||||
| if ((variant_name = strchr(name, '+')) != NULL) { | |||||
| *variant_name = 0; | |||||
| variant_name++; | |||||
| } | |||||
| sprintf(last_part, "%c%s", PATHSEP, name); | sprintf(last_part, "%c%s", PATHSEP, name); | ||||
| last_part_len = strlen(last_part); | last_part_len = strlen(last_part); |