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

9
LINES

< > BotCompany Repo | #1020296 // matchEnd_vbar - allows "bla|blubb"

JavaX fragment (include)

1  
static boolean matchEnd_vbar(S pat, S s) {
2  
  return matchEnd_vbar(pat, s, null);
3  
}
4  
5  
static boolean matchEnd_vbar(S pat, S s, Matches matches) {
6  
  for (S pat2 : splitAtTokens(pat, ll("|")))
7  
    if (matchEnd(pat2, s, matches)) true;
8  
  false;
9  
}

Author comment

Began life as a copy of #1020293

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1020296
Snippet name: matchEnd_vbar - allows "bla|blubb"
Eternal ID of this version: #1020296/1
Text MD5: fd0b375b376d17a66ef856d19ec0c9ef
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-12-12 23:49:52
Source code size: 251 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 212 / 244
Referenced in: [show references]