1 | // returns true when edited |
2 | static bool editSnippet_replaceToken(S snippetID, S a, S b) { |
3 | S text = loadSnippet(snippetID); |
4 | S newText = jreplace(text, a, b); |
5 | if (eq(text, newText)) false; |
6 | editSnippetVerbose(snippetID, newText); |
7 | true; |
8 | } |
Began life as a copy of #1012815
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1013210 |
Snippet name: | editSnippet_replaceToken |
Eternal ID of this version: | #1013210/3 |
Text MD5: | 8c5b8af35a1fef61fa12e2029295e584 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-05-07 12:34:09 |
Source code size: | 252 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 458 / 467 |
Version history: | 2 change(s) |
Referenced in: | [show references] |