Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

11
LINES

< > BotCompany Repo | #1018416 // matchEndOneOf

JavaX fragment (include)

// patterns last so we can use var args
static bool matchEndOneOf(S s, Matches m, S... pats) {
  for (S pat : pats)
    if (matchEnd(pat, s, m))
      true;
  false;
}

static bool matchEndOneOf(S s, S... pats) {
  ret matchEndOneOf(s, null, pats);
}

Author comment

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: 353 / 381
Referenced in: [show references]