OLD | NEW |
1 /* | 1 /* |
2 This file is part of LilyPond, the GNU music typesetter. | 2 This file is part of LilyPond, the GNU music typesetter. |
3 | 3 |
4 Copyright (C) 2006--2019 Jan Nieuwenhuizen <janneke@gnu.org> | 4 Copyright (C) 2006--2019 Jan Nieuwenhuizen <janneke@gnu.org> |
5 | 5 |
6 LilyPond is free software: you can redistribute it and/or modify | 6 LilyPond is free software: you can redistribute it and/or modify |
7 it under the terms of the GNU General Public License as published by | 7 it under the terms of the GNU General Public License as published by |
8 the Free Software Foundation, either version 3 of the License, or | 8 the Free Software Foundation, either version 3 of the License, or |
9 (at your option) any later version. | 9 (at your option) any later version. |
10 | 10 |
(...skipping 21 matching lines...) Expand all Loading... |
32 #endif | 32 #endif |
33 #endif | 33 #endif |
34 | 34 |
35 #include <string> | 35 #include <string> |
36 | 36 |
37 using namespace std; | 37 using namespace std; |
38 | 38 |
39 typedef size_t ssize; | 39 typedef size_t ssize; |
40 #define NPOS string::npos | 40 #define NPOS string::npos |
41 | 41 |
42 string to_string (const string&); | 42 // TODO: This should probably be renamed to avoid any possible confusion with |
43 string to_string (char c, ssize_t n = 1); | 43 // std::to_string. |
44 string to_string (int i, char const *format = 0); | |
45 string to_string (double f, char const *format = 0); | |
46 string to_string (long); | |
47 string to_string (long unsigned); | |
48 string to_string (I64, char const *format = 0); | |
49 string to_string (unsigned); | |
50 string to_string (bool b); | |
51 string to_string (char const *format, ...) | 44 string to_string (char const *format, ...) |
52 __attribute__ ((format (printf, 1, 2))); | 45 __attribute__ ((format (printf, 1, 2))); |
53 | 46 |
54 string &replace_all (string *str, string const &find, string const &replace); | 47 string &replace_all (string *str, string const &find, string const &replace); |
55 string &replace_all (string *str, char find, char replace); | 48 string &replace_all (string *str, char find, char replace); |
56 char *string_copy (const string &s); | |
57 | 49 |
58 #endif /* STD_STRING_HH */ | 50 #endif /* STD_STRING_HH */ |
OLD | NEW |