projects
/
IRC.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
start of new file
[IRC.git]
/
Robust
/
src
/
ClassLibrary
/
String.java
diff --git
a/Robust/src/ClassLibrary/String.java
b/Robust/src/ClassLibrary/String.java
index 1623a8e678fd160af9c97d8e257412dd733361bd..f1ec9d53c2cc76fd5f17c3cab0a3ae6b8fcc0c30 100644
(file)
--- a/
Robust/src/ClassLibrary/String.java
+++ b/
Robust/src/ClassLibrary/String.java
@@
-67,7
+67,7
@@
public class String {
String str=new String();
if (beginIndex>this.count||endIndex>this.count||beginIndex>endIndex) {
// FIXME
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;
}
str.value=this.value;
str.count=endIndex-beginIndex;
@@
-225,6
+225,13
@@
public class String {
return o.toString();
}
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;
public static String valueOf(char c) {
char ar[]=new char[1];
ar[0]=c;