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

5
LINES

< > BotCompany Repo | #1028680 - replaceDollarVars - does not use a tokenizer

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

Libraryless. Click here for Pure Java version (2839L/18K).

sS replaceDollarVars(S s, O... params) {
  if (empty(params)) ret s;
  MapSO vars = mapKeys dropDollarPrefix((MapSO) litcimap(params));
  ret replaceDollarVars_dyn(s, var -> strOrNull(vars.get(var)));
}

Author comment

Began life as a copy of #1028669

download  show line numbers  debug dex   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, xrpafgyirdlv

No comments. add comment

Snippet ID: #1028680
Snippet name: replaceDollarVars - does not use a tokenizer
Eternal ID of this version: #1028680/4
Text MD5: c3c9acdc0b442afa2e7554902bb72a60
Transpilation MD5: a65262a40bdcaf654d3d92b943d93b3e
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-12-16 23:15:02
Source code size: 206 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 43 / 93
Version history: 3 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1028680 & http://1028680.tinybrain.de