1 | ifclass IntRange |
2 | svoid replaceTokens(LS tok, IntRange r, S s) { |
3 | replaceTokens(tok, r.start, r.end, s); |
4 | } |
5 | endif |
6 | |
7 | svoid replaceTokens(LS tok, int i, int j, S s) { |
8 | clearAllTokens(tok, i+1, j); |
9 | tok.set(i, s); |
10 | } |
11 | |
12 | svoid replaceTokens(LS tok, S s) { |
13 | clearAllTokens(tok, 1, l(tok)); |
14 | tok.set(0, s); |
15 | } |
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: | 678 / 1334 |
Version history: | 4 change(s) |
Referenced in: | [show references] |