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

14
LINES

< > BotCompany Repo | #1005331 // getMatches - like match(), but returns Matches

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

Libraryless. Click here for Pure Java version (2682L/17K).

1  
static Matches getMatches(S pat, S input) {
2  
  new Matches m;
3  
  ret match(pat, input, m) ? m : null;
4  
}
5  
6  
static Matches getMatches(S pat, LS input) {
7  
  new Matches m;
8  
  ret match(pat, input, m) ? m : null;
9  
}
10  
11  
static Matches getMatches(LS pat, LS input) {
12  
  new Matches m;
13  
  ret match3(pat, input, m) ? m : null;
14  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1005331
Snippet name: getMatches - like match(), but returns Matches
Eternal ID of this version: #1005331/6
Text MD5: e7646c50ed4c506ea52301459a409efe
Transpilation MD5: b3e646d8bab4cfb83817327f02c05270
Author: stefan
Category: javax / nl
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-11-28 13:46:06
Source code size: 324 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 518 / 618
Version history: 5 change(s)
Referenced in: [show references]