Lines Matching refs: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)
110 if (!rest.empty())
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)
133 if (rest.length() < 3 || rest.substr(0, 2) != ": ")
136 const std::string reason = rest.substr(2);
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)
186 std::string::size_type delim = rest.find_first_of(":(");
191 status % rest);
194 if (rest[delim] == '(') {
195 const std::string::size_type delim2 = rest.find("):", delim);
197 throw engine::format_error(F("Mismatched '(' in %s") % rest);
199 const std::string argstr = rest.substr(delim + 1, delim2 - delim - 1);
208 const std::string reason = rest.substr(delim + 2);
302 const std::string rest = data.second.substr(status.length());
305 return parse_with_reason(status, rest);
307 return parse_with_reason(status, rest);
309 return parse_with_reason_and_arg(status, rest);
311 return parse_with_reason(status, rest);
313 return parse_with_reason_and_arg(status, rest);
315 return parse_with_reason(status, rest);
317 return parse_with_reason(status, rest);
319 return parse_without_reason(status, rest);
321 return parse_with_reason(status, rest);