+/**
+ * \file tostr.C
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * \author André Pönitz
+ *
+ * Full author contact details are available in file CREDITS.
+ */
+
#include <config.h>
-
-#include "Lsstream.h"
-#include "LString.h"
+
+#include <sstream>
+
+using std::string;
+using std::ostringstream;
string const tostr(bool b)
{
ostringstream os;
os << i;
- return STRCONV(os.str());
+ return os.str();
}
{
ostringstream os;
os << i;
- return STRCONV(os.str());
+ return os.str();
}
{
ostringstream os;
os << d;
- return STRCONV(os.str());
+ return os.str();
}
{
ostringstream os;
os << i;
- return STRCONV(os.str());
+ return os.str();
}
{
return s;
}
-
+
+
+string const tostr(long unsigned int i)
+{
+ ostringstream os;
+ os << i;
+ return os.str();
+}