Libraryless. Click here for Pure Java version (2228L/14K).
1 | // returns range(opening bracket, closing bracket+1) |
2 | static IntRange tok_findFirstBlock(LS tok, int i) {
|
3 | i = indexOf(tok, i, "{");
|
4 | if (i < 0) null; |
5 | ret intRange(i, findEndOfBlock(tok, i)); |
6 | } |
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: | 407 / 547 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |