Simplified setString(buffer, offset, string, length) to use

setString(buffer, offset, string, length, highBitOn = true).
This commit is contained in:
Robert Greene 2002-12-23 21:03:11 +00:00
parent 09470976b6
commit d92bd82288
1 changed files with 1 additions and 7 deletions

View File

@ -131,13 +131,7 @@ public class AppleUtil {
* Create an Apple string that is space delimited.
*/
public static void setString(byte[] buffer, int offset, String string, int length) {
for (int i=0; i<length; i++) {
char ch = ' ';
if (i < string.length()) {
ch = string.charAt(i);
}
buffer[offset+i] = (byte) (ch | 0x80);
}
setString(buffer, offset, string, length, true);
}
/**