]> git.lyx.org Git - features.git/blobdiff - src/support/tostr.C
change "support/std_sstream.h" to <sstream>
[features.git] / src / support / tostr.C
index 2442699f57d105019ee757710204e73130da4ee2..81058d5d87959de332856034a168b64c80cfabb5 100644 (file)
@@ -1,7 +1,19 @@
+/**
+ * \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)
@@ -14,7 +26,15 @@ string const tostr(unsigned int i)
 {
        ostringstream os;
        os << i;
-       return STRCONV(os.str());
+       return os.str();
+}
+
+
+string const tostr(long int i)
+{
+       ostringstream os;
+       os << i;
+       return os.str();
 }
 
 
@@ -22,7 +42,7 @@ string const tostr(double d)
 {
        ostringstream os;
        os << d;
-       return STRCONV(os.str());
+       return os.str();
 }
 
 
@@ -30,7 +50,7 @@ string const tostr(int i)
 {
        ostringstream os;
        os << i;
-       return STRCONV(os.str());
+       return os.str();
 }
 
 
@@ -38,4 +58,11 @@ string const tostr(string const & s)
 {
        return s;
 }
+
+
+string const tostr(long unsigned int i)
+{
+        ostringstream os;
+        os << i;
+        return os.str();
+}