this.offset=0;
}
+ public String(byte str[], int offset, int length) {
+ if (length>(str.length-offset))
+ length=str.length-offset;
+ char charstr[]=new char[length];
+ for(int i=0;i<length;i++)
+ charstr[i]=(char)str[i+offset];
+ this.value=charstr;
+ this.count=length;
+ this.offset=0;
+ }
+
public String(String str) {
this.value=str.value;
this.count=str.count;
String str=new String();
if (beginIndex>this.count||endIndex>this.count||beginIndex>endIndex) {
// FIXME
- System.printString("Index error: "+this+" "+beginIndex+" "+endIndex+"\n");
+ System.printString("Index error: "+beginIndex+" "+endIndex+" "+count+"\n"+this);
}
str.value=this.value;
str.count=endIndex-beginIndex;
return o.toString();
}
+ public static String valueOf(boolean b) {
+ if (b)
+ return new String("true");
+ else
+ return new String("false");
+ }
+
public static String valueOf(char c) {
char ar[]=new char[1];
ar[0]=c;