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

10
LINES

< > BotCompany Repo | #1022752 // tok_findTokenSkippingCurlyBrackets

JavaX fragment (include)

static int tok_findTokenSkippingCurlyBrackets(LS tok, int i, S t) {
  while (i < l(tok)) {
    if (eqGet(tok, i, t)) ret i;
    if (eqGet(tok, i, "{"))
      i = findEndOfBracketPart(tok, i)+1;
    else
      i += 2;
  }
  ret -1;
}

Author comment

Began life as a copy of #1017567

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1022752
Snippet name: tok_findTokenSkippingCurlyBrackets
Eternal ID of this version: #1022752/1
Text MD5: 53a699a7c7b3bc1252ba3c5cbad6bd1d
Author: stefan
Category: javax / parsing
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-04-05 12:55:42
Source code size: 241 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 278 / 315
Referenced in: [show references]