1 | static L<Int> singleEllipsisMatchIC_splitIndices(S pat, S s) {
|
2 | int i = indexOf(pat, "..."); |
3 | if (i < 0) null; |
4 | if (!regionMatchesIC(s, 0, pat, 0, i)) null; |
5 | int lSuffix = l(pat)-(i+3); |
6 | if (!regionMatchesIC(s, l(s)-lSuffix, pat, i+3, lSuffix)) null; |
7 | ret ll(i, l(s)-lSuffix); |
8 | } |
Began life as a copy of #1012768
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: | #1012779 |
| Snippet name: | singleEllipsisMatchIC_splitIndices |
| Eternal ID of this version: | #1012779/1 |
| Text MD5: | c8f3f1081ca3cd38cdfa165e2c54f74f |
| Author: | stefan |
| Category: | javax / parsing |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-12-13 02:42:56 |
| Source code size: | 291 bytes / 8 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 621 / 684 |
| Referenced in: | [show references] |