Libraryless. Click here for Pure Java version (2691L/17K).
1 | static CharSequence virtualToUpper(CharSequence s) { |
2 | if (s == null) null; |
3 | int l = s.length(); |
4 | ret new CharSequence { |
5 | public int length() { ret l; } |
6 | public char charAt(int i) ctex { ret upper(s.charAt(i)); } |
7 | public CharSequence subSequence(int from, int to) { ret substringObject(this, from, to); } |
8 | toString { ret charSequenceToStringByChar(this); } |
9 | }; |
10 | } |
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1029260 |
Snippet name: | virtualToUpper |
Eternal ID of this version: | #1029260/1 |
Text MD5: | 9ad2a43e3146f7949c719dd08d736799 |
Transpilation MD5: | 39748e1dac220c5777d4d636919957ca |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-07-27 18:35:46 |
Source code size: | 386 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 210 / 289 |
Referenced in: | [show references] |