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

9
LINES

< > BotCompany Repo | #1017812 // match_vbar - allows "bla|blubb"

JavaX fragment (include)

static boolean match_vbar(S pat, S s) {
  return match_vbar(pat, s, null);
}

static boolean match_vbar(S pat, S s, Matches matches) {
  for (S pat2 : tok_splitAtVerticalBar(pat))
    if (match3(pat2, s, matches)) true;
  false;
}

Author comment

Began life as a copy of #1001842

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: #1017812
Snippet name: match_vbar - allows "bla|blubb"
Eternal ID of this version: #1017812/4
Text MD5: aeb8b7431688cad983a281711076e03d
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-01-01 03:20:33
Source code size: 240 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 394 / 427
Version history: 3 change(s)
Referenced in: [show references]