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).

static Matches getMatches(S pat, S input) {
  new Matches m;
  ret match(pat, input, m) ? m : null;
}

static Matches getMatches(S pat, LS input) {
  new Matches m;
  ret match(pat, input, m) ? m : null;
}

static Matches getMatches(LS pat, LS input) {
  new Matches m;
  ret match3(pat, input, m) ? m : null;
}

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: 451 / 532
Version history: 5 change(s)
Referenced in: [show references]