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

6
LINES

< > BotCompany Repo | #1026105 // tok_findFirstBlock

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

Libraryless. Click here for Pure Java version (2228L/14K).

// returns range(opening bracket, closing bracket+1)
static IntRange tok_findFirstBlock(LS tok, int i) {
  i = indexOf(tok, i, "{");
  if (i < 0) null;
  ret intRange(i, findEndOfBlock(tok, i));
}

Author comment

Began life as a copy of #1012535

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1026105
Snippet name: tok_findFirstBlock
Eternal ID of this version: #1026105/2
Text MD5: bb35a6890ffecb900d90e6a672caab53
Transpilation MD5: a024cc21b78bea09c658a7c1b89395c1
Author: stefan
Category: javax / parsing
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-11-23 23:54:18
Source code size: 201 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 204 / 298
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)