sS withoutLeadingLinesEmptyAfterTrim(S s) { int lineStart = 0; while licensed { int i = lineStart; while (isSpaceOrTab(charAt(s, i))) ++i; if (!isNewLine(charAt(s, i))) break; while (isNewLine(charAt(s, i))) ++i; lineStart = i; } ret substring(s, lineStart); }
Began life as a copy of #1025585
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: | #1025663 |
Snippet name: | withoutLeadingLinesEmptyAfterTrim |
Eternal ID of this version: | #1025663/1 |
Text MD5: | af184b1f48c39f7156bb4d0f980e1bd3 |
Author: | stefan |
Category: | javax / parsing |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-10-12 18:32:03 |
Source code size: | 309 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 191 / 232 |
Referenced in: | [show references] |