Lines Matching refs:rest
40 bool remove_prefix(std::string_view line, const char* prefix, const char** rest) { in remove_prefix() argument
50 *rest = &str[start]; in remove_prefix()
92 const char* rest; in parse_animation_desc() local
96 } else if (remove_prefix(line, animation_prefix, &rest)) { in parse_animation_desc()
98 if (sscanf(rest, "%d %d %n%*s%n", &anim->num_cycles, &anim->first_frame_repeats, in parse_animation_desc()
104 anim->animation_file.assign(&rest[start], end - start); in parse_animation_desc()
106 } else if (remove_prefix(line, fail_prefix, &rest)) { in parse_animation_desc()
107 anim->fail_file.assign(rest); in parse_animation_desc()
108 } else if (remove_prefix(line, clock_prefix, &rest)) { in parse_animation_desc()
109 if (!parse_text_field(rest, &anim->text_clock)) { in parse_animation_desc()
113 } else if (remove_prefix(line, percent_prefix, &rest)) { in parse_animation_desc()
114 if (!parse_text_field(rest, &anim->text_percent)) { in parse_animation_desc()