]> git.donarmstrong.com Git - lilypond.git/blobdiff - flower/include/string-convert.hh
Imported Upstream version 2.18.0
[lilypond.git] / flower / include / string-convert.hh
index 148005672ec78698c41ba2bf856b41947e69e254..6b4fba023f4f1ebb23efec44ecf006d471b2c9db 100644 (file)
@@ -19,23 +19,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 bin2dec (string bin_string);
   static string bin2hex (Byte bin_char);
-  static string bin2hex (string bin_string);
-  static string dec2bin (string str);
-  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 int hex2int (string str);
-  static unsigned hex2unsigned (string str);
-  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);
@@ -46,7 +42,6 @@ public:
   static string rational_string (Rational);
   static string pointer_string (void const *);
   static string precision_string (double x, int n);
-  //  static vector<string> split (string str, char c);
   static string i64_string (I64, char const *fmt = 0);
   static string to_lower (string s);
   static string to_upper (string s);