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

7
LINES

< > BotCompany Repo | #1009830 // tok_contentsOfClass

JavaX fragment (include)

1  
static L<S> tok_contentsOfClass(L<S> tok) {
2  
  int i = 1;
3  
  while (i < tok.size() && !tok.get(i).equals("{"))
4  
    i += 2;
5  
  assertEquals("}", tok.get(l(tok)-2));
6  
  ret subList(tok, i+1, l(tok)-2);
7  
}

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: #1009830
Snippet name: tok_contentsOfClass
Eternal ID of this version: #1009830/1
Text MD5: debdbf0a7f7de038676663bbfd76d307
Author: stefan
Category: javax / parsing
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-08-20 01:07:57
Source code size: 203 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 461 / 523
Referenced in: [show references]