|
8 | 8 | // Google closure compiler cannot handle Clazz.new or Clazz.super |
9 | 9 |
|
10 | 10 |
|
| 11 | +// BH 2/13/2018 6:24:44 AM adds String.copyValueOf (two forms) |
11 | 12 | // BH 2/7/2018 7:47:07 PM adds System.out.flush and System.err.flush |
12 | 13 | // BH 2/1/2018 12:14:20 AM fix for new int[128][] not nulls |
13 | 14 | // BH 1/9/2018 8:40:52 AM fully running SwingJS2; adds String.isEmpty() |
@@ -3638,8 +3639,6 @@ return Clazz.array(Byte.TYPE, -1, arrs); |
3638 | 3639 | sp.contains$S = function(a) {return this.indexOf(a) >= 0} // bh added |
3639 | 3640 | sp.compareTo$S = sp.compareTo$TT = function(a){return this > a ? 1 : this < a ? -1 : 0} // bh added |
3640 | 3641 |
|
3641 | | - |
3642 | | - |
3643 | 3642 | sp.toCharArray=function(){ |
3644 | 3643 | var result=new Array(this.length); |
3645 | 3644 | for(var i=0;i<this.length;i++){ |
@@ -3905,6 +3904,16 @@ default: |
3905 | 3904 |
|
3906 | 3905 | })(Clazz._Encoding); |
3907 | 3906 |
|
| 3907 | +String.copyValueOf$CA$I$I = function(data,offset,count) { |
| 3908 | + var s = ""; |
| 3909 | + for (var pt = offset, n = offset+count;pt < n;pt++)s += data[pt]; |
| 3910 | + return s; |
| 3911 | +} |
| 3912 | +String.copyValueOf$CA = function(data) { |
| 3913 | + return sp.copyValueOf$CA$I$I(data, 0, data.length); |
| 3914 | +} |
| 3915 | + |
| 3916 | + |
3908 | 3917 | C$=Clazz.newClass(java.lang,"Character",function(){ |
3909 | 3918 | if (typeof arguments[0] != "object")this.c$(arguments[0]); |
3910 | 3919 | },null,[java.io.Serializable,Comparable]); |
|
0 commit comments