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

12
LINES

< > BotCompany Repo | #1011820 // ai_tok_scanForGlobalIDs_recursive

JavaX fragment (include)

static L<S> ai_tok_scanForGlobalIDs_recursive(S s) {
  L<S> tok = javaTokC(s);
  new L<S> ids;
  for (int i = 0; i < l(tok)-2; i++) {
    S t = tok.get(i);
    if (eq(t, "globalID") && eq(tok.get(i+1), "="))
      ids.add(tok.get(i+2));
    else if (isQuoted(t) && contains(t, "globalID="))
      ids.addAll(ai_tok_scanForGlobalIDs(unquote(t)));
  }
  ret ids;
}

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: #1011820
Snippet name: ai_tok_scanForGlobalIDs_recursive
Eternal ID of this version: #1011820/2
Text MD5: 2f709c91253f76cd65097f80b4745aed
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-11-05 21:30:15
Source code size: 373 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 413 / 447
Version history: 1 change(s)
Referenced in: [show references]