]> git.donarmstrong.com Git - lilypond.git/blob - flower/include/std-string.hh
* flower/std-string.cc (std): add to_string(long unsigned).
[lilypond.git] / flower / include / std-string.hh
1 /*
2   std-string.hh -- declare std::string
3
4   source file of the GNU LilyPond music typesetter
5
6   (c) 2006 Jan Nieuwenhuizen <janneke@gnu.org>
7 */
8
9 #ifndef STD_STRING_HH
10 #define STD_STRING_HH
11  
12 #include "compare.hh"
13
14 #include <string>
15
16 namespace std {
17
18   typedef size_t ssize;
19 #define NPOS std::string::npos
20
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   
31   string &replace_all (string &str, string find, string replace);
32   string &replace_all (string &str, char find, char replace);
33   char *string_copy (string s);
34   
35   int string_compare (string const &, string const &);
36
37   INSTANTIATE_COMPARE (string const &, string_compare);
38 }
39
40
41 #endif /* STD_STRING_HH */