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

9
LINES

< > BotCompany Repo | #1007936 - tok_hasClassRef

JavaX fragment (include)

static bool tok_hasClassRef(L<S> tok, S className) {
  for (int i = 1; i < l(tok); i += 2)
    if (eq(tok.get(i), className))
      if (eq(get(tok, i-2), "ifclass"))
        i = smartIndexOf(tok, "endif", i);
      else
        true;
  false;
}

download  show line numbers  debug dex   

Travelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz

No comments. add comment

Snippet ID: #1007936
Snippet name: tok_hasClassRef
Eternal ID of this version: #1007936/4
Text MD5: f629e479c280a6b866d580f07ee19cb9
Author: stefan
Category: javax / parsing
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-04-17 18:56:57
Source code size: 252 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 339 / 337
Version history: 3 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1007936 & http://1007936.tinybrain.de