Libraryless. Click here for Pure Java version (2324L/15K).
1 | sS format_noQuote(S pat, O... args) { |
2 | if (args.length == 0) ret pat; |
3 | |
4 | LS tok = javaTok(pat); |
5 | int argidx = 0; |
6 | for (int i = 1; i < tok.size(); i += 2) |
7 | if (tok.get(i).equals("*")) |
8 | tok.set(i, str(argidx < args.length ? args[argidx++] : null)); |
9 | ret join(tok); |
10 | } |
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: | 174 / 255 |
Version history: | 2 change(s) |
Referenced in: | [show references] |