WString toWString(int val, unsigned short width, char fill, std::ios::fmtflags flags) { WStringStream stream; stream.width(width); stream.fill(fill); if (flags) stream.setf(flags); stream << val; return stream.str(); }
WString toWString(double val, unsigned short precision, unsigned short width, char fill, std::ios::fmtflags flags) { WStringStream stream; stream.precision(precision); stream.width(width); stream.fill(fill); if (flags) stream.setf(flags); stream << val; return stream.str(); }