- str = String_convert::bin2hex_str (str) + "\n";
- // ugh, should have separate debugging output with Midi*::print routines
- int i = str.index_i ("0a");
- while (i >= 0)
- {
- str[i] = '\n';
- str[i + 1] = '\t';
- i = str.index_i ("0a");
- }
+ str = String_convert::bin2hex (str) + "\n";
+ for (int i = str.index ("0a"); i >= 0; i = str.index ("0a"))
+ {
+ str[i] = '\n';
+ str[i + 1] = '\t';
+ }