2 This file is part of LilyPond, the GNU music typesetter.
4 Copyright (C) 2006--2015 Jan Nieuwenhuizen <janneke@gnu.org>
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
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
11 LilyPond is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with LilyPond. If not, see <http://www.gnu.org/licenses/>.
23 #include "flower-proto.hh"
27 leads to dubious crashes - libstdc++ bug?
30 #define _GLIBCXX_DEBUG 1
39 #define NPOS string::npos
41 string to_string (const string&);
42 string to_string (char c, int n = 1);
43 string to_string (int i, char const *format = 0);
44 string to_string (double f, char const *format = 0);
45 string to_string (long);
46 string to_string (long unsigned);
47 string to_string (I64, char const *format = 0);
48 string to_string (unsigned);
49 string to_string (bool b);
50 string to_string (char const *format, ...)
51 __attribute__ ((format (printf, 1, 2)));
53 string &replace_all (string *str, string const &find, string const &replace);
54 string &replace_all (string *str, char find, char replace);
55 char *string_copy (const string &s);
57 #endif /* STD_STRING_HH */