1 | // returns from C to C |
2 | static S jextract(S pat, S s) {
|
3 | ret jextract(pat, javaTok(s)); |
4 | } |
5 | |
6 | static S jextract(S pat, L<S> tok) {
|
7 | L<S> tokpat = javaTok(pat); |
8 | jfind_preprocess(tokpat); |
9 | int i = jfind(tok, tokpat); |
10 | if (i < 0) null; |
11 | int j = i + l(tokpat) - 2; |
12 | ret joinSubList(tok, i, j); |
13 | } |
download show line numbers debug dex old transpilations
Travelled to 16 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1004321 |
| Snippet name: | jextract - jfind and return found text [first parameter is pattern!] |
| Eternal ID of this version: | #1004321/3 |
| Text MD5: | b81775abba4529835fcc646d176333b0 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-11-15 00:29:26 |
| Source code size: | 309 bytes / 13 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 1148 / 1476 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |