public String toString (int start, int length) { if (OS.IsUnicode) { return new String (chars, start, length); } else { byte [] bytes = this.bytes; if (start != 0) { bytes = new byte [length]; System.arraycopy (this.bytes, start, bytes, 0, length); } char [] chars = new char [length]; int cp = codePage != 0 ? codePage : OS.CP_ACP; int charCount = OS.MultiByteToWideChar (cp, OS.MB_PRECOMPOSED, bytes, length, chars, length); return new String (chars, 0, charCount); }
public String toString () { return toString (0, length ());
public String toString (int start, int length) {	if (OS.IsUnicode) {		return new String (chars, start, length);	} else {		byte [] bytes = this.bytes;		if (start != 0) {			bytes = new byte [length];			System.arraycopy (this.bytes, start, bytes, 0, length);		}		char [] chars = new char [length];		int cp = codePage != 0 ? codePage : OS.CP_ACP;		int charCount = OS.MultiByteToWideChar (cp, OS.MB_PRECOMPOSED, bytes, length, chars, length);		return new String (chars, 0, charCount);	}}