Libraryless. Click here for Pure Java version (3045L/18K).
1  | sS replaceDollarVars2(S s, O... params) {
 | 
2  | if (empty(params)) ret s;  | 
3  | MapSO vars = mapKeys dropDollarPrefix((MapSO) litcimap(params));  | 
4  | ret replaceDollarVars2_dyn(s, var -> strOrNull(vars.get(var)));  | 
5  | }  | 
Began life as a copy of #1028680
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1030664 | 
| Snippet name: | replaceDollarVars2 - does not use a tokenizer. also supports ${name} | 
| Eternal ID of this version: | #1030664/1 | 
| Text MD5: | a445fe50bd945fbcf4517ddd7aa20333 | 
| Transpilation MD5: | 7d083b187d7a1547c88dfa7980fb499c | 
| Author: | stefan | 
| Category: | javax | 
| Type: | JavaX fragment (include) | 
| Public (visible to everyone): | Yes | 
| Archived (hidden from active list): | No | 
| Created/modified: | 2021-02-22 13:05:27 | 
| Source code size: | 208 bytes / 5 lines | 
| Pitched / IR pitched: | No / No | 
| Views / Downloads: | 511 / 666 | 
| Referenced in: | [show references] |