Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

8
LINES

< > BotCompany Repo | #1013210 // editSnippet_replaceToken

JavaX fragment (include)

// returns true when edited
static bool editSnippet_replaceToken(S snippetID, S a, S b) {
  S text = loadSnippet(snippetID);
  S newText = jreplace(text, a, b); 
  if (eq(text, newText)) false;
  editSnippetVerbose(snippetID, newText);
  true;
}

Author comment

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: 457 / 466
Version history: 2 change(s)
Referenced in: [show references]