1 | // returns from C to C |
2 | sS jextractIC(S pat, S s) { |
3 | ret jextractIC(pat, javaTok(s)); |
4 | } |
5 | |
6 | sS jextractIC(S pat, L<S> tok) { |
7 | LS tokpat = javaTok(pat); |
8 | jfind_preprocess(tokpat); |
9 | int i = jfindIC(tok, tokpat); |
10 | if (i < 0) null; |
11 | int j = i + l(tokpat) - 2; |
12 | ret joinSubList(tok, i, j); |
13 | } |
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: | 188 / 220 |
Referenced in: | [show references] |