1 | static int charToTokenIndex_right(L<S> tok, int charIndex) { |
2 | int i = 0, idx = 0; |
3 | while (i < l(tok) && idx < charIndex) { |
4 | idx += l(tok.get(i)); |
5 | i++; |
6 | } |
7 | ret i; |
8 | } |
Began life as a copy of #1008633
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: | #1008634 |
Snippet name: | charToTokenIndex_right |
Eternal ID of this version: | #1008634/1 |
Text MD5: | 37922bb0f8c0dfa618aa994ede6b98a7 |
Author: | stefan |
Category: | javax / parsing |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-05-26 16:23:33 |
Source code size: | 181 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 524 / 556 |
Referenced in: | [show references] |