1 | static Matches getFind3plusRests(S pat, S s) {
|
2 | L<S> tokpat = parse3_cachedPattern(pat), toks = parse3_cachedInput(s); |
3 | Pair<S[], Int> p = find2plusIndex(tokpat, toks); |
4 | if (p == null) null; |
5 | new Matches m; |
6 | m.m = concatStringArrays( |
7 | new S[] {joinSubList(toks, 0, p.b-1)},
|
8 | p.a, |
9 | new S[] {joinSubList(toks, p.b+l(tokpat)-1)});
|
10 | ret m; |
11 | } |
Began life as a copy of #1014422
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1014425 |
| Snippet name: | getFind3plusRests - returns beginning, inner matches, rest - note: drops punctuation! |
| Eternal ID of this version: | #1014425/4 |
| Text MD5: | 73eee3cbd69965bc58d371e4ed7b0d84 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-08-23 01:01:13 |
| Source code size: | 362 bytes / 11 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 654 / 706 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |