7 Formatter::Formatter(const string &f):
15 Returns the result of the formatting operation. Will throw if not enough
16 values have been fed to the formatter.
18 const string &Formatter::str() const
21 throw format_error("Too few arguments for format");
27 Advances the pos iterator to the next conversion, adding literal characters to
28 the result. The iterator is left at the second character of the conversion
31 void Formatter::advance()
33 for(; pos!=fmt.end(); ++pos)
39 throw format_error("Malformed format string");
49 Reads the next conversion from the format string and returns a corresponding
52 Fmt Formatter::get_conversion()
55 throw format_error("Too many arguments for format");
57 string::iterator i = pos;
58 for(; i!=fmt.end(); ++i)
63 throw format_error("Malformed format string");