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

10
LINES

< > BotCompany Repo | #1026690 // format_noQuote

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

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);
}

Author comment

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: 173 / 253
Version history: 2 change(s)
Referenced in: [show references]