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

11
LINES

< > BotCompany Repo | #1001992 // str function (=String.valueOf + extensions)

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

Transpiled version (38L) is out of date.

1  
sS str(O o) {
2  
  ret o == null ? "null" : o.toString();
3  
}
4  
5  
sS str(char[] c) {
6  
  ret c == null ? "null" : new String(c);
7  
}
8  
9  
sS str(char[] c, int offset, int count) {
10  
  ret new String(c, offset, count);
11  
}

Author comment

Began life as a copy of #1001843

download  show line numbers  debug dex  old transpilations   

Travelled to 21 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, ekrmjmnbrukm, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, thuhawujahgc, tslmcundralx, tvejysmllsmz, vouqrxazstgt, vujiipfktnfq, whxojlpjdney, xrpafgyirdlv

No comments. add comment

Snippet ID: #1001992
Snippet name: str function (=String.valueOf + extensions)
Eternal ID of this version: #1001992/4
Text MD5: b26e51dd08285af909749fbc67d4e023
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-11-08 17:55:08
Source code size: 211 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 833 / 6506
Version history: 3 change(s)
Referenced in: [show references]