static int charIndexOfRow(S text, int row) { int i = 0; while (row-- > 0 && i < l(text)) i = smartIndexOf(text, '\n', i)+1; ret min(i, l(text)); }
Began life as a copy of #1008636
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: | #1012342 |
Snippet name: | charIndexOfRow (both counting from 0) |
Eternal ID of this version: | #1012342/5 |
Text MD5: | bf31bc14c54595a3ae1163e05d5987b9 |
Author: | stefan |
Category: | javax / parsing |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-11-28 15:55:43 |
Source code size: | 161 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 368 / 418 |
Version history: | 4 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1014785 - charIndexToUserLandLineNr (line counted from 1) |