// returns from C to C sS jextractIC(S pat, S s) { ret jextractIC(pat, javaTok(s)); } sS jextractIC(S pat, L<S> tok) { LS tokpat = javaTok(pat); jfind_preprocess(tokpat); int i = jfindIC(tok, tokpat); if (i < 0) null; int j = i + l(tokpat) - 2; ret joinSubList(tok, i, j); }
Began life as a copy of #1004321
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1030231 |
| Snippet name: | jextractIC - jfind and return found text [first parameter is pattern!] |
| Eternal ID of this version: | #1030231/1 |
| Text MD5: | cd9ea87af26d24cb13d3ae97ac7e3eda |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-11-17 22:16:34 |
| Source code size: | 303 bytes / 13 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 476 / 509 |
| Referenced in: | [show references] |