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 /* Also declare string, in the wrong way. */
33 #define NPOS std::string::npos
37 #else /* ! STD_STRING */
51 #endif /* STD_STRING */
55 string to_string (string s);
56 string to_string (char c, int n = 1);
57 string to_string (int i, char const *format = 0);
58 string to_string (double f, char const *format = 0);
59 string to_string (long);
60 string to_string (unsigned);
61 string to_string (bool b);
62 string to_string (char const *format, ...);
64 string &replace_all (string &str, string find, string replace);
65 string &replace_all (string &str, char find, char replace);
66 char *string_copy (string s);
68 int string_compare (string const &, string const &);
70 INSTANTIATE_COMPARE (string const &, string_compare);
74 #endif /* STD_STRING_HH */