]> git.donarmstrong.com Git - lilypond.git/blobdiff - flower/include/string-convert.hh
Issue 5167/6: Changes: show \markup xxx = ... \etc assignments
[lilypond.git] / flower / include / string-convert.hh
index 396eee2f912139cc85d467903bcdb7ac6c7e166f..8e1695bd5ceb9d6154fe3d3a5edc5f22e5595a6f 100644 (file)
@@ -10,6 +10,7 @@
 using namespace std;
 
 #include "flower-proto.hh"
+#include "std-string.hh"
 
 /** The functor string_convert handles all conversions to/from string
     (some time, anyway).  The class is quite empty from data view.  */
@@ -19,19 +20,19 @@ class String_convert
   static int hex2nibble (Byte byte);
   static Byte nibble2hex_byte (Byte byte);
 public:
-  static string pad_to (string s, size_t length);
+  static string pad_to (const string &s, size_t length);
   static string bool_string (bool b);
   static string bin2hex (Byte bin_char);
-  static string bin2hex (string bin_string);
-  static int bin2int (string bin_string);
-  static unsigned bin2unsigned (string bin_string);
+  static string bin2hex (const string &bin_string);
+  static int bin2int (const string &bin_string);
+  static unsigned bin2unsigned (const string &bin_string);
   static string char_string (char c, int n);
-  static int dec2int (string dec_string);
-  static double dec2double (string dec_string);
+  static int dec2int (const string &dec_string);
+  static double dec2double (const string &dec_string);
   static string double_string (double f, char const *fmt = 0);
   static string form_string (char const *format, ...) __attribute__ ((format (printf, 1, 2)));
   static string vform_string (char const *format, va_list args);
-  static string hex2bin (string str);
+  static string hex2bin (const string &str);
   static string int_string (int i, char const *fmt = 0);
   static string unsigned_string (unsigned);
   static string unsigned_long_string (unsigned long);