Libraryless. Click here for Pure Java version (4995L/28K).
static int tok_beginningOfLine(LS tok, int i) { i |= 1; while (i > 1 && !containsNewLine(tok.get(i-1))) i -= 2; return i; }
Began life as a copy of #1001156
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1034462 |
| Snippet name: | tok_beginningOfLine - returns first token on line |
| Eternal ID of this version: | #1034462/3 |
| Text MD5: | fce60edc20e360dda1102c6f43b5fc1c |
| Transpilation MD5: | 4887acc3db16359146d11c3eb30bd263 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-02-08 01:31:59 |
| Source code size: | 140 bytes / 6 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 392 / 506 |
| Version history: | 2 change(s) |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |