Distributed under the LGPL
*/
-#include <msp/core/except.h>
#include "fmt.h"
using namespace std;
namespace Msp {
-void Fmt::parse(const char *f)
+void Fmt::parse(const char *s)
{
+ const char *f = s;
if(*f=='%') ++f;
for(; *f; ++f)
else if(*f=='i')
base = AUTOBASE;
else
- throw InvalidParameterValue("Invalid conversion specifier");
+ throw format_error(s);
if(*f=='E' || *f=='F' || *f=='G' || *f=='X' || *f=='P')
ucase = true;
++f;
if(*f)
- throw InvalidParameterValue("Extra characters in conversion specification");
+ throw format_error(s);
}
Fmt &Fmt::reset()