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

6
LINES

< > BotCompany Repo | #1010978 // web_replaceLabel

JavaX fragment (include)

static void web_replaceLabel(WebNode n, S from, S to) {
  if (n == null) ret;
  int i = n.labels.indexOf(n.parseLabel(from));
  if (i >= 0)
    n.labels.set(i, n.parseLabel(to));
}

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: #1010978
Snippet name: web_replaceLabel
Eternal ID of this version: #1010978/2
Text MD5: 7e166885a21a389308a2bf41ecf80acf
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-10-11 00:27:12
Source code size: 185 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 415 / 446
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1011169 - web_replaceFirstText