static int find2_index(S pat, LS tok) { ret find2_index(parse3(pat), tok); } static int find2_index(LS pat, LS tok) { for (int idx = 0; idx < tok.size(); idx += 2) { S[] result = find2(pat, tok, idx); if (result != null) ret idx+1; } ret -1; }
Began life as a copy of #1014421
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: | #1022863 |
Snippet name: | find2_index - returns C index or -1 |
Eternal ID of this version: | #1022863/1 |
Text MD5: | 2e4fcdbd2b76160706141f7fb2f8e4ca |
Author: | stefan |
Category: | |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-04-11 22:59:43 |
Source code size: | 270 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 243 / 291 |
Referenced in: | [show references] |