Libraryless. Click here for Pure Java version (3051L/18K).
// e.g. "I am <vague height>" to "I am *" // var names will be stripped of angle brackets sS angleBracketVarsToStars(S s, LS varNames_out default null) { LS tok = javaTokWithAngleBrackets(s); for (int idx : indicesOfAngleBracketVars(tok)) { varNames_out?.add(deAngleBracket(tok.get(idx))); tok.set(idx, "*"); } ret join(tok); }
Began life as a copy of #1024416
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1025717 |
Snippet name: | angleBracketVarsToStars |
Eternal ID of this version: | #1025717/3 |
Text MD5: | be50066dc1f62e7c94ed218a51bf8e0b |
Transpilation MD5: | 06ae184ce4a7c7fcbcee00f6f76adf13 |
Author: | stefan |
Category: | javax / tokenizing |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-03-18 16:33:17 |
Source code size: | 352 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 212 / 295 |
Version history: | 2 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1030877 - starsToAngleBracketedNumbers |