Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

13
LINES

< > BotCompany Repo | #1030231 // jextractIC - jfind and return found text [first parameter is pattern!]

JavaX fragment (include)

// 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);
}

Author comment

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: 187 / 219
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)