1 | static int find2_index(S pat, LS tok) {
|
2 | ret find2_index(parse3(pat), tok); |
3 | } |
4 | |
5 | static int find2_index(LS pat, LS tok) {
|
6 | for (int idx = 0; idx < tok.size(); idx += 2) {
|
7 | S[] result = find2(pat, tok, idx); |
8 | if (result != null) ret idx+1; |
9 | } |
10 | ret -1; |
11 | } |
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: | 446 / 502 |
| Referenced in: | [show references] |