* configure.in (--enable-std-string): New option.
[lilypond/patrick.git] / flower / include / std-string.hh
blobd2b2ffd1a3322b312a67630537f2c85603b6128d
1 /*
2 std-string.hh -- declare Std_string
4 source file of the GNU LilyPond music typesetter
6 (c) 2006 Jan Nieuwenhuizen <janneke@gnu.org>
7 */
9 #ifndef STD_STRING_HH
10 #define STD_STRING_HH
12 #if !STD_STRING
14 #define Std_string
15 #define to_std_string to_string
16 #include "string.hh"
18 #else
20 #include <string>
21 #warning Using std::string
23 namespace std {
25 #if 0
26 class Std_string : public string
28 public:
29 Std_string ();
30 Std_string (char const*);
31 Std_string (Std_string const&, int pos, int n=npos);
32 ///Std_string (String const&, int pos, int n);
33 ////Std_string (String const &);
34 ////operator String ();
36 #else
37 typedef string Std_string;
38 #endif
40 //operator Std_string (String const&);
42 Std_string to_std_string (Std_string s);
43 Std_string to_std_string (char c, int n = 1);
44 Std_string to_std_string (int i, char const *format = 0);
45 Std_string to_std_string (double f, char const *format = 0);
46 Std_string to_std_string (long b);
47 Std_string to_std_string (bool b);
48 Std_string to_std_string (char const *format, ...);
51 #endif /* STD_STRING */
53 #endif /* STD_STRING_HH */