Skip to content

Commit 400fb64

Browse files
committed
adds Character.to/isTitleCase(c)
just implemented as to/isUpperCase
1 parent 5dd936c commit 400fb64

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed
103 Bytes
Binary file not shown.

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
// Google closure compiler cannot handle Clazz.new or Clazz.super
99

10+
// BH 6/25/2018 12:10:25 PM Character.toTitleCase, isTitleCase as ...UpperCase
1011
// BH 6/25/2018 10:23:24 AM really fixing new int[] {'a'} using .$c() see Test_Byte.java
1112
// BH 6/21/2018 1:08:58 PM missing mysterious Integer.objectValue()
1213
// BH 6/20/2018 6:00:23 AM missing printStackTrace(PrintStream)
@@ -3987,6 +3988,10 @@ m$(C$,"toLowerCase",
39873988
function(c){
39883989
return(""+c).toLowerCase().charAt(0);
39893990
}, 1);
3991+
m$(C$,"toTitleCase",
3992+
function(c){
3993+
return C$.toUpperCase(c);
3994+
}, 1);
39903995
m$(C$,"toUpperCase",
39913996
function(c){
39923997
return(""+c).toUpperCase().charAt(0);
@@ -4034,6 +4039,10 @@ if(i==0x20||i==0xa0||i==0x1680)return true;
40344039
if(i<0x2000)return false;
40354040
return i<=0x200b||i==0x2028||i==0x2029||i==0x202f||i==0x3000;
40364041
}, 1);
4042+
m$(C$,"isTitleCase",
4043+
function(c){
4044+
return C$.isUpperCase(c);
4045+
}, 1);
40374046
m$(C$,"isUpperCase",
40384047
function(c){
40394048
if (typeof c == "string")

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13094,6 +13094,7 @@ J2S._getResourcePath = function(path, isJavaPath) {
1309413094

1309513095
// Google closure compiler cannot handle Clazz.new or Clazz.super
1309613096

13097+
// BH 6/25/2018 12:10:25 PM Character.toTitleCase, isTitleCase as ...UpperCase
1309713098
// BH 6/25/2018 10:23:24 AM really fixing new int[] {'a'} using .$c() see Test_Byte.java
1309813099
// BH 6/21/2018 1:08:58 PM missing mysterious Integer.objectValue()
1309913100
// BH 6/20/2018 6:00:23 AM missing printStackTrace(PrintStream)
@@ -17074,6 +17075,10 @@ m$(C$,"toLowerCase",
1707417075
function(c){
1707517076
return(""+c).toLowerCase().charAt(0);
1707617077
}, 1);
17078+
m$(C$,"toTitleCase",
17079+
function(c){
17080+
return C$.toUpperCase(c);
17081+
}, 1);
1707717082
m$(C$,"toUpperCase",
1707817083
function(c){
1707917084
return(""+c).toUpperCase().charAt(0);
@@ -17121,6 +17126,10 @@ if(i==0x20||i==0xa0||i==0x1680)return true;
1712117126
if(i<0x2000)return false;
1712217127
return i<=0x200b||i==0x2028||i==0x2029||i==0x202f||i==0x3000;
1712317128
}, 1);
17129+
m$(C$,"isTitleCase",
17130+
function(c){
17131+
return C$.isUpperCase(c);
17132+
}, 1);
1712417133
m$(C$,"isUpperCase",
1712517134
function(c){
1712617135
if (typeof c == "string")

0 commit comments

Comments
 (0)