Lines Matching full:rest
100 /// \param rest The rest of the line after the status name.
104 /// \throw format_error If the result is invalid (i.e. rest is invalid).
108 parse_without_reason(const std::string& status, const std::string& rest) in parse_without_reason() argument
110 if (!rest.empty()) in parse_without_reason()
120 /// \param rest The rest of the line after the status name.
124 /// \throw format_error If the result is invalid (i.e. rest is invalid).
129 parse_with_reason(const std::string& status, const std::string& rest) in parse_with_reason() argument
133 if (rest.length() < 3 || rest.substr(0, 2) != ": ") in parse_with_reason()
136 const std::string reason = rest.substr(2); in parse_with_reason()
175 /// \param rest The rest of the line after the status name.
182 parse_with_reason_and_arg(const std::string& status, const std::string& rest) in parse_with_reason_and_arg() argument
186 std::string::size_type delim = rest.find_first_of(":("); in parse_with_reason_and_arg()
191 status % rest); in parse_with_reason_and_arg()
194 if (rest[delim] == '(') { in parse_with_reason_and_arg()
195 const std::string::size_type delim2 = rest.find("):", delim); in parse_with_reason_and_arg()
197 throw engine::format_error(F("Mismatched '(' in %s") % rest); in parse_with_reason_and_arg()
199 const std::string argstr = rest.substr(delim + 1, delim2 - delim - 1); in parse_with_reason_and_arg()
208 const std::string reason = rest.substr(delim + 2); in parse_with_reason_and_arg()
302 const std::string rest = data.second.substr(status.length()); in parse() local
305 return parse_with_reason(status, rest); in parse()
307 return parse_with_reason(status, rest); in parse()
309 return parse_with_reason_and_arg(status, rest); in parse()
311 return parse_with_reason(status, rest); in parse()
313 return parse_with_reason_and_arg(status, rest); in parse()
315 return parse_with_reason(status, rest); in parse()
317 return parse_with_reason(status, rest); in parse()
319 return parse_without_reason(status, rest); in parse()
321 return parse_with_reason(status, rest); in parse()