Libraryless. Click here for Pure Java version (3073L/18K).
sS replaceIdentifiers(S text, O... params) { MapSO map = paramsToMap(params); if (empty(map)) ret text; ret mapCodeTokens_javaTok(text, t -> map.containsKey(t) ? str(map.get(t)) : t); }
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1030681 |
Snippet name: | replaceIdentifiers - uses javaTok |
Eternal ID of this version: | #1030681/3 |
Text MD5: | d8e0c40c2af655587f62f623c9fb7e43 |
Transpilation MD5: | a7f97c701ecc6967d282fe7c13834208 |
Author: | stefan |
Category: | javax / tokenizing |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-03-04 12:46:01 |
Source code size: | 195 bytes / 5 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 208 / 284 |
Version history: | 2 change(s) |
Referenced in: | [show references] |