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]

Libraryless. Click here for Pure Java version (38L/1K).

sS str(O o) {
  ret o == null ? "null" : o.toString();
}

sS str(char[] c) {
  ret new String(c);
}

sS str(char[] c, int offset, int count) {
  ret new String(c, offset, count);
}

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/3
Text MD5: fd552b23567783127a872ef9e6d91d36
Transpilation MD5: a0f8098e762db1a85cd893f3ca1eb890
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-03-05 21:36:47
Source code size: 190 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 808 / 6468
Version history: 2 change(s)
Referenced in: [show references]