]> git.lyx.org Git - features.git/blob - src/support/tostr.h
Replace LString.h with support/std_string.h,
[features.git] / src / support / tostr.h
1 // -*- C++ -*-
2 /**
3  * \file tostr.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author André Pönitz
8  *
9  * Full author contact details are available in file CREDITS.
10  *
11  * A collection of string helper functions that works with string.
12  * Some of these would certainly benefit from a rewrite/optimization.
13  */
14
15 #ifndef TOSTR_H
16 #define TOSTR_H
17
18 #include "support/std_string.h"
19
20 // When trying to convert this to a template using std::stringstream,
21 // note that this will pull in the whole of <string> in more than 150
22 // files, even when configuring --with-included-strings !
23
24 /// convert things to strings
25 string const tostr(bool b);
26 ///
27 string const tostr(int);
28 ///
29 string const tostr(unsigned int);
30 ///
31 string const tostr(long int);
32 ///
33 string const tostr(double);
34 ///
35 string const tostr(string const & s);
36
37 #endif