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

8
LINES

< > BotCompany Repo | #1028813 // codeTokensEqualICAtIndex

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2455L/16K).

sbool codeTokensEqualICAtIndex(LS tok, LS patternCodeTokens, int idx) {
  int end = idx+l(patternCodeTokens)*2, n = l(tok);
  if (end > n) false;
  for (int i = idx; i < end; i += 2)
    if (!eqic(tok.get(i), patternCodeTokens.get((i-idx)/2)))
      false;
  true;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1028813
Snippet name: codeTokensEqualICAtIndex
Eternal ID of this version: #1028813/4
Text MD5: f670f61837c135d3624bb74f3c37b2c6
Transpilation MD5: 5474bfde7e2e605daf705f515e3fc6a4
Author: stefan
Category: javax / tokenizing
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-09 11:40:03
Source code size: 273 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 221 / 310
Version history: 3 change(s)
Referenced in: [show references]