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

14
LINES

< > BotCompany Repo | #1025364 // matchUsingFunctionNameAndPattern

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (3214L/20K).

1  
sbool matchUsingFunctionNameAndPattern(FunctionNameAndPattern fp, S s, Matches m) {
2  
  if (fp == null) false;
3  
  S f = fp.function, pat = fp.pattern;
4  
  if (eqOneOf(f, "if", "match", "match3")) ret match(pat, s, m);
5  
  if f eq "matchX" ret matchX(pat, s, m);
6  
  if f eq "matchX2" ret matchX2(pat, s, m);
7  
  if f eq "matchX_vbar" ret matchX_vbar(pat, s, m);
8  
  warn("Unknown function: " + fp);
9  
  false;
10  
}
11  
12  
sbool matchUsingFunctionNameAndPattern(FunctionNameAndPattern fp, S s) {
13  
  ret matchUsingFunctionNameAndPattern(fp, s, null);
14  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1025364
Snippet name: matchUsingFunctionNameAndPattern
Eternal ID of this version: #1025364/4
Text MD5: 9334be6ad53ae05af15c8f1518da7bda
Transpilation MD5: f99f3459b4bda47b886cb0379451e292
Author: stefan
Category: javax / html
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-09-26 13:51:21
Source code size: 538 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 199 / 282
Version history: 3 change(s)
Referenced in: [show references]