]> git.donarmstrong.com Git - lilypond.git/blobdiff - lib/binary-source-file.cc
release: 1.0.1
[lilypond.git] / lib / binary-source-file.cc
index 75d7ce24caf011d2b2f619f5c620fa0696300d1b..9bcf0e5f70fa1ab4dffd161c8c12755534548494 100644 (file)
@@ -3,7 +3,7 @@
 
   source file of the LilyPond music typesetter
 
-  (c) 1997 Jan Nieuwenhuizen
+  (c)  1997--1998 Jan Nieuwenhuizen
 */
 
 
@@ -39,15 +39,15 @@ Binary_source_file::error_str (char const* pos_ch_c_l) const
     String pre_str ((Byte const*)begin_ch_c_l, pos_ch_c_l - begin_ch_c_l);
     pre_str = String_convert::bin2hex_str (pre_str);
     for (int i = 2; i < pre_str.length_i (); i += 3)
-       pre_str = pre_str.left_str (i) + " " + pre_str.cut (i, INT_MAX);
+       pre_str = pre_str.left_str (i) + " " + pre_str.cut_str (i, INT_MAX);
     String post_str ((Byte const*)pos_ch_c_l, end_ch_c_l - pos_ch_c_l);
     post_str = String_convert::bin2hex_str (post_str);
     for (int i = 2; i < post_str.length_i (); i += 3)
-       post_str = post_str.left_str (i) + " " + post_str.cut (i, INT_MAX);
+       post_str = post_str.left_str (i) + " " + post_str.cut_str (i, INT_MAX);
 
     String str = pre_str
-       + String ('\n')
-       + String (' ', pre_str.length_i () + 1) 
+       + to_str ('\n')
+       + to_str (' ', pre_str.length_i () + 1) 
        + post_str;
     return str;
 }