+/* $Id$
+
+This file is part of libmspstrings
+Copyright © 2006-2007 Mikko Rasa
+Distributed under the LGPL
+*/
+
#include "formatter.h"
using namespace std;
break;
}
- result+=*pos;
+ result += *pos;
}
}
if(pos==fmt.end())
throw Exception("Too many arguments for format");
- string::iterator i=pos;
+ string::iterator i = pos;
for(; i!=fmt.end(); ++i)
if(isalpha(*i))
break;
++i;
string c(pos, i);
- pos=i;
+ pos = i;
return Fmt(c);
}