ifclass IntRange svoid replaceTokens(LS tok, IntRange r, S s) { replaceTokens(tok, r.start, r.end, s); } endif svoid replaceTokens(LS tok, int i, int j, S s) { clearAllTokens(tok, i+1, j); tok.set(i, s); } svoid replaceTokens(LS tok, S s) { clearAllTokens(tok, 1, l(tok)); tok.set(0, s); }
Began life as a copy of #1002055
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1003369 |
Snippet name: | replaceTokens (no reTok) |
Eternal ID of this version: | #1003369/5 |
Text MD5: | 8de66e0aa407c8ebb254ce1fbdf19ec0 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-04-16 15:14:44 |
Source code size: | 315 bytes / 15 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 676 / 1331 |
Version history: | 4 change(s) |
Referenced in: | [show references] |