1 | // patterns last so we can use var args |
2 | static bool matchEndOneOf(S s, Matches m, S... pats) { |
3 | for (S pat : pats) |
4 | if (matchEnd(pat, s, m)) |
5 | true; |
6 | false; |
7 | } |
8 | |
9 | static bool matchEndOneOf(S s, S... pats) { |
10 | ret matchEndOneOf(s, null, pats); |
11 | } |
Began life as a copy of #1003855
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1018416 |
Snippet name: | matchEndOneOf |
Eternal ID of this version: | #1018416/1 |
Text MD5: | 97d1be96a5256ec5c520be80cb287c9c |
Author: | stefan |
Category: | javax / talking robots |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-09-27 13:51:19 |
Source code size: | 260 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 355 / 383 |
Referenced in: | [show references] |