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

7
LINES

< > BotCompany Repo | #1026743 // matchUppercaseVars - match3 with uppercase variables (returns mapping or null)

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

Libraryless. Click here for Pure Java version (2921L/18K).

1  
static SS matchUppercaseVars(S pat, S s) {
2  
  if (pat == null || s == null) null;
3  
  new LS vars;
4  
  new Matches m;
5  
  if (!match3(upperCaseVarsToStars(pat, vars), s, m)) null;
6  
  ret matchesToMapUsingVarList_ciMap(m, vars);
7  
}

Author comment

Began life as a copy of #1001104

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1026743
Snippet name: matchUppercaseVars - match3 with uppercase variables (returns mapping or null)
Eternal ID of this version: #1026743/3
Text MD5: 1c72388b8bb8eb4d7f1545081c209351
Transpilation MD5: 39c65ed0bc34209250fae7ac10ce5fd2
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-01-19 21:55:53
Source code size: 227 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 168 / 252
Version history: 2 change(s)
Referenced in: [show references]