Libraryless. Click here for Pure Java version (2324L/15K).
sS format_noQuote(S pat, O... args) { if (args.length == 0) ret pat; LS tok = javaTok(pat); int argidx = 0; for (int i = 1; i < tok.size(); i += 2) if (tok.get(i).equals("*")) tok.set(i, str(argidx < args.length ? args[argidx++] : null)); ret join(tok); }
Began life as a copy of #1026623
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: | #1026690 |
Snippet name: | format_noQuote |
Eternal ID of this version: | #1026690/3 |
Text MD5: | 97289d0a82ef5849bc0bffc65593b858 |
Transpilation MD5: | e1224ad5733964b518dad688a74360c8 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-01-19 00:29:01 |
Source code size: | 287 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 175 / 255 |
Version history: | 2 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1034740 - starFormat - simple formatter replacing * with each argument (no tokenizing) |