2 std-string.hh -- declare Std_string
4 source file of the GNU LilyPond music typesetter
6 (c) 2006 Jan Nieuwenhuizen <janneke@gnu.org>
14 #define Std_string String
15 #define to_std_string to_string
22 // #warning Using std::string
27 class Std_string : public 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 ();
38 typedef string Std_string;
41 //operator Std_string (String const&);
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, ...);
53 #endif /* STD_STRING */
55 Std_string &replace_all (Std_string &str, Std_string find, Std_string replace);
57 #endif /* STD_STRING_HH */