Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

10
LINES

< > BotCompany Repo | #1029260 // virtualToUpper

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2691L/17K).

static CharSequence virtualToUpper(CharSequence s) {
  if (s == null) null;
  int l = s.length();
  ret new CharSequence {
    public int length() { ret l; }
    public char charAt(int i) ctex { ret upper(s.charAt(i)); }
    public CharSequence subSequence(int from, int to) { ret substringObject(this, from, to); }
    toString { ret charSequenceToStringByChar(this); }
  };
}

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: 123 / 183
Referenced in: [show references]