1 | static bool simpleStarMatchOnCTokensIC(S pat, L<S> tok, Matches m) { |
2 | L<S> tokPat = javaTokC(pat); |
3 | if (l(tokPat) != l(tok)) false; |
4 | new L<S> matches; |
5 | for i over tokPat: { |
6 | S p = tokPat.get(i), t = tok.get(i); |
7 | if (eq(p, "*")) { |
8 | matches.add(t); |
9 | continue; |
10 | } |
11 | if (!eqic(p, t)) false; |
12 | } |
13 | m.m = toStringArray(matches); |
14 | true; |
15 | } |
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: | #1013173 |
Snippet name: | simpleStarMatchOnCTokensIC |
Eternal ID of this version: | #1013173/1 |
Text MD5: | 31b9b09a48fe2ff6d21054cac638f8b9 |
Author: | stefan |
Category: | javax / parsing |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-12-27 03:15:54 |
Source code size: | 371 bytes / 15 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 359 / 382 |
Referenced in: | [show references] |