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