]> git.donarmstrong.com Git - lilypond.git/blob - flower/include/std-string.hh
Fix some bugs in the dynamic engraver and PostScript backend
[lilypond.git] / flower / include / std-string.hh
1 /*
2   std-string.hh -- declare 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 using namespace std;
17
18 typedef size_t ssize;
19 #define NPOS 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   __attribute__ ((format (printf, 1, 2)));
31   
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);
35
36 int string_compare (string const &, string const &);
37
38 INSTANTIATE_COMPARE (string const &, string_compare);
39
40
41 #endif /* STD_STRING_HH */