static bool simpleStarMatchOnCTokensIC(S pat, L<S> tok, Matches m) { L<S> tokPat = javaTokC(pat); if (l(tokPat) != l(tok)) false; new L<S> matches; for i over tokPat: { S p = tokPat.get(i), t = tok.get(i); if (eq(p, "*")) { matches.add(t); continue; } if (!eqic(p, t)) false; } m.m = toStringArray(matches); true; }
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: | 357 / 379 |
Referenced in: | [show references] |