2 std-string.hh -- declare string
4 source file of the GNU LilyPond music typesetter
6 (c) 2006--2007 Jan Nieuwenhuizen <janneke@gnu.org>
16 leads to dubious crashes - libstdc++ bug?
19 #define _GLIBCXX_DEBUG 1
28 #define NPOS string::npos
30 string to_string (string s);
31 string to_string (char c, int n=1);
32 string to_string (int i, char const *format=0);
33 string to_string (double f, char const *format=0);
34 string to_string (long);
35 string to_string (long unsigned);
36 string to_string (unsigned);
37 string to_string (bool b);
38 string to_string (char const *format, ...)
39 __attribute__ ((format (printf, 1, 2)));
41 string &replace_all (string &str, string find, string replace);
42 string &replace_all (string &str, char find, char replace);
43 char *string_copy (string s);
45 int string_compare (string const &, string const &);
47 INSTANTIATE_COMPARE (string const &, string_compare);
50 #endif /* STD_STRING_HH */