Libraryless. Click here for Pure Java version (4995L/28K).
1 | static int tok_beginningOfLine(LS tok, int i) {
|
2 | i |= 1; |
3 | while (i > 1 && !containsNewLine(tok.get(i-1))) |
4 | i -= 2; |
5 | return i; |
6 | } |
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: | 391 / 505 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |