Skip to content

Commit 67ab173

Browse files
hansonrhansonr
authored andcommitted
Swingjs2.js and SwingJS-site.zip
1 parent 92e68e2 commit 67ab173

File tree

6 files changed

+25
-3
lines changed

6 files changed

+25
-3
lines changed
262 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20190129013326
1+
20190129150841
262 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20190129013326
1+
20190129150841
262 Bytes
Binary file not shown.

sources/net.sf.j2s.java.core/srcjs/swingjs2.js

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13618,6 +13618,8 @@ if (!target) {
1361813618

1361913619
// TODO: still a lot of references to window[...]
1362013620

13621+
// BH 1/29/2019 adds String.join$CharSequence$Iterable, String.join$CharSequence$CharSequenceA
13622+
1362113623
// BH 1/13/2019 3.2.4.07 adds Character.to[Title|Lower|Upper]Case(int)
1362213624
// BH 1/8/2019 3.2.4.07 fixes String.prototype.to[Upper|Lower]Case$java_util_Locale - using toLocal[Upper|Lower]Case()
1362313625
// BH 1/3/2019 3.2.4.07 adds ByteBuffer/CharBuffer support, proper CharSet encoding, including GBK (Standard Chinese)
@@ -17353,7 +17355,7 @@ function(s){
1735317355
return Clazz.new_(Float.c$, [s]);
1735417356
}, 1);
1735517357

17356-
Float.isNaN$F = m$(Float,"isNaN",
17358+
Float.isNaN$F = m$(Float,"isNaN$",
1735717359
function(num){
1735817360
return isNaN(arguments.length == 1 ? num : this.valueOf());
1735917361
});
@@ -18162,6 +18164,26 @@ String.copyValueOf$CA$I$I = function(data,offset,count) {
1816218164
String.copyValueOf$CA = function(data) {
1816318165
return sp.copyValueOf$CA$I$I(data, 0, data.length);
1816418166
}
18167+
18168+
String.join$CharSequence$CharSequenceA = function(sep,array) {
18169+
var ret = "";
18170+
var s = "";
18171+
for (var i = 0; i < array.length; i++) {
18172+
ret += s + array[i].toString();
18173+
s || (s = sep);
18174+
}
18175+
return ret;
18176+
}
18177+
18178+
String.join$CharSequence$Iterable = function(sep,iter) {
18179+
var ret = "";
18180+
var s = "";
18181+
while (iter.hasNext$()) {
18182+
ret += s + iter.next$().toString();
18183+
s || (s = sep);
18184+
}
18185+
return ret;
18186+
}
1816518187

1816618188
var C$=Clazz.newClass(java.lang,"Character",function(){
1816718189
if (typeof arguments[0] != "object")this.c$(arguments[0]);

0 commit comments

Comments
 (0)