7 Formatter::Formatter(const string &f):
14 Formatter::Formatter(const Formatter &other):
16 pos(fmt.begin()+(other.pos-other.fmt.begin())),
20 Formatter &Formatter::operator=(const Formatter &other)
23 pos = fmt.begin()+(other.pos-other.fmt.begin());
24 result = other.result;
28 const string &Formatter::str() const
31 throw format_error("Too few arguments for format");
36 void Formatter::advance()
38 for(; pos!=fmt.end(); ++pos)
44 throw format_error("Malformed format string");
53 Fmt Formatter::get_conversion()
56 throw format_error("Too many arguments for format");
58 string::iterator i = pos;
59 for(; i!=fmt.end(); ++i)
64 throw format_error("Malformed format string");