2 std-string.hh -- declare string
4 source file of the GNU LilyPond music typesetter
6 (c) 2006 Jan Nieuwenhuizen <janneke@gnu.org>
19 #define NPOS string::npos
21 string to_string (string s);
22 string to_string (char c, int n=1);
23 string to_string (int i, char const *format=0);
24 string to_string (double f, char const *format=0);
25 string to_string (long);
26 string to_string (long unsigned);
27 string to_string (unsigned);
28 string to_string (bool b);
29 string to_string (char const *format, ...)
30 __attribute__ ((format (printf, 1, 2)));
32 string &replace_all (string &str, string find, string replace);
33 string &replace_all (string &str, char find, char replace);
34 char *string_copy (string s);
36 int string_compare (string const &, string const &);
38 INSTANTIATE_COMPARE (string const &, string_compare);
41 #endif /* STD_STRING_HH */