3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
8 * Full author contact details are available in file CREDITS.
13 #include "support/std_sstream.h"
14 #include "support/std_string.h"
17 string const tostr(bool b)
19 return (b ? "true" : "false");
23 string const tostr(unsigned int i)
27 return STRCONV(os.str());
31 string const tostr(long int i)
35 return STRCONV(os.str());
39 string const tostr(double d)
43 return STRCONV(os.str());
47 string const tostr(int i)
51 return STRCONV(os.str());
55 string const tostr(string const & s)