X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fstrings%2Fformat.cpp;h=1b8b4650a9efc852e2ab42268c775d7f5cb858f1;hb=ea901644ac2d36256d1f38c7a3adaaee787fe1b9;hp=4fa5e2caeaf3eac74f1d1d42bc49625f2e642f2c;hpb=02df44f46e4aaa3989d0ee9c9e2e25f8a808e0ec;p=libs%2Fcore.git diff --git a/source/strings/format.cpp b/source/strings/format.cpp index 4fa5e2c..1b8b465 100644 --- a/source/strings/format.cpp +++ b/source/strings/format.cpp @@ -1,10 +1,3 @@ -/* $Id$ - -This file is part of libmspstrings -Copyright © 2006-2007 Mikko Rasa -Distributed under the LGPL -*/ - #include "format.h" using namespace std; @@ -18,10 +11,6 @@ Formatter::Formatter(const string &f): advance(); } -/** -Returns the result of the formatting operation. Will throw if not enough -values have been fed to the formatter. -*/ const string &Formatter::str() const { if(pos!=fmt.end()) @@ -30,11 +19,6 @@ const string &Formatter::str() const return result; } -/** -Advances the pos iterator to the next conversion, adding literal characters to -the result. The iterator is left at the second character of the conversion -(i.e. after the %). -*/ void Formatter::advance() { for(; pos!=fmt.end(); ++pos) @@ -52,10 +36,6 @@ void Formatter::advance() } } -/** -Reads the next conversion from the format string and returns a corresponding -Fmt object. -*/ Fmt Formatter::get_conversion() { if(pos==fmt.end())