1 | // i = C index |
2 | sbool codeTokenSubListEqualsIC(LS l, LS pat, int i) {
|
3 | if (i < 0) false; |
4 | int j = i+l(pat)-1; |
5 | if (j > l(l)) false; |
6 | for (int k = i; k < j; k += 2) |
7 | if (neqic(l.get(k), pat.get(k-i+1))) |
8 | false; |
9 | true; |
10 | } |
Began life as a copy of #1022225
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1022229 |
| Snippet name: | codeTokenSubListEqualsIC |
| Eternal ID of this version: | #1022229/3 |
| Text MD5: | f9ad4097a53c6da6dd72a24d30cb854c |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-03-11 13:47:58 |
| Source code size: | 239 bytes / 10 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 498 / 543 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |