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