static boolean find3plusRestsX(S pat, S s) { return find3plusRestsX(pat, s, null); } static boolean find3plusRestsX(S pat, S s, Matches matches) { pat = dropPrefix("...", dropSuffix("...", pat)); L<S> tokpat = parse3(pat), toks = parse3(s); Pair<S[], Int> p = find2plusIndex(tokpat, toks); //print(structure(tokpat) + " on " + structure(toks) + " => " + structure(m)); if (p == null) false; if (matches != null) matches.m = concatStringArrays( new S[] {joinSubList(toks, 0, p.b-1)}, p.a, new S[] {joinSubList(toks, p.b+l(tokpat)-1)}); true; }
Began life as a copy of #1014422
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1014428 |
Snippet name: | find3plusRestsX |
Eternal ID of this version: | #1014428/1 |
Text MD5: | b64ff2ab19f481d9e593043475c1844f |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-04-21 17:30:18 |
Source code size: | 597 bytes / 17 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 382 / 413 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |