]> git.donarmstrong.com Git - lilypond.git/blob - flower/include/std-string.hh
* flower/file-path.cc:
[lilypond.git] / flower / include / std-string.hh
1 /*
2   std-string.hh -- declare Std_string
3
4   source file of the GNU LilyPond music typesetter
5
6   (c) 2006 Jan Nieuwenhuizen <janneke@gnu.org>
7 */
8
9 #ifndef STD_STRING_HH
10 #define STD_STRING_HH
11
12 #if !STD_STRING
13
14 #define Std_string
15 #define to_std_string to_string
16 #include "string.hh"
17
18 #else
19
20 #include <string>
21 // #warning Using std::string
22
23 namespace std {
24
25 #if 0
26   class Std_string : public string
27   {
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 ();
35   };
36 #else  
37   typedef string Std_string;
38 #endif
39
40   //operator Std_string (String const&);
41
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, ...);
49 }
50
51 #endif /* STD_STRING */
52
53 #endif /* STD_STRING_HH */