]> git.donarmstrong.com Git - lilypond.git/blob - flower/include/std-string.hh
* flower/include/std-string.hh: Oops, bugfix for --disable-std-string.
[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 String
15 #define to_std_string to_string
16 class String;
17 #include "string.hh"
18
19 #else
20
21 #include <string>
22 // #warning Using std::string
23
24 namespace std {
25
26 #if 0
27   class Std_string : public string
28   {
29   public:
30     Std_string ();
31     Std_string (char const*);
32     Std_string (Std_string const&, int pos, int n=npos);
33     ///Std_string (String const&, int pos, int n);
34     ////Std_string (String const &);
35     ////operator String ();
36   };
37 #else  
38   typedef string Std_string;
39 #endif
40
41   //operator Std_string (String const&);
42
43   Std_string to_std_string (Std_string s);
44   Std_string to_std_string (char c, int n = 1);
45   Std_string to_std_string (int i, char const *format = 0);
46   Std_string to_std_string (double f, char const *format = 0);
47   Std_string to_std_string (long b);
48   Std_string to_std_string (bool b);
49   Std_string to_std_string (char const *format, ...);
50 }
51
52 }
53 #endif /* STD_STRING */
54   
55 Std_string &replace_all (Std_string &str, Std_string find, Std_string replace);
56
57 #endif /* STD_STRING_HH */