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. */
34 #define NPOS std::string::npos
35 // typedef string std::string;
38 #else /* ! STD_STRING */
51 #endif /* STD_STRING */
55 std::string to_string (std::string s);
56 std::string to_string (char c, int n = 1);
57 std::string to_string (int i, char const *format = 0);
58 std::string to_string (double f, char const *format = 0);
59 std::string to_string (long b);
60 std::string to_string (bool b);
61 std::string to_string (char const *format, ...);
63 std::string &replace_all (std::string &str, std::string find, std::string replace);
64 std::string &replace_all (std::string &str, char find, char replace);
65 char *string_copy (std::string s);
67 int string_compare (std::string const &, std::string const &);
68 INSTANTIATE_COMPARE (std::string const &, string_compare);
71 #endif /* STD_STRING_HH */