mirror of
https://github.com/AppleCommander/AppleCommander.git
synced 2025-01-18 04:34:25 +00:00
Simplified setString(buffer, offset, string, length) to use
setString(buffer, offset, string, length, highBitOn = true).
This commit is contained in:
parent
09470976b6
commit
d92bd82288
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user