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

15
LINES

< > BotCompany Repo | #1010809 // nodeMatch_dollarVars - now case-insensitive

JavaX fragment (include)

static double nodeMatch_dollarVars(WebNode a, WebNode b) {
  if (isDollarVar(a.text())) ret isDollarVar(b.text()) ? -1 : 0;
  for (S s : web_texts(b))
    if (!web_hasLabel(a, s))
      ret -1;
  ret 0;
  //ret containsAll(web_ucTexts(a), web_ucTexts(b)) ? 0 : -1;
}

static double nodeMatch_dollarVars(CharSequence _text, WebNode b) {
  S text = str(_text);
  if (b == null) ret -1;
  if (isDollarVar(text)) ret isDollarVar(b.text()) ? -1 : 0;
  ret cic(web_texts(b), text) ? 0 : -1;
}

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: #1010809
Snippet name: nodeMatch_dollarVars - now case-insensitive
Eternal ID of this version: #1010809/11
Text MD5: e3fd27d32f2a9781349531e91296bd18
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-12-10 07:07:50
Source code size: 500 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 503 / 533
Version history: 10 change(s)
Referenced in: [show references]