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)

1  
static boolean match_vbar(S pat, S s) {
2  
  return match_vbar(pat, s, null);
3  
}
4  
5  
static boolean match_vbar(S pat, S s, Matches matches) {
6  
  for (S pat2 : tok_splitAtVerticalBar(pat))
7  
    if (match3(pat2, s, matches)) true;
8  
  false;
9  
}

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: 396 / 430
Version history: 3 change(s)
Referenced in: [show references]