Libraryless. Click here for Pure Java version (3315L/20K).
static L<Int> jfindAll(L<S> tok, S pat, ITokCondition condition default null) { ret jfindAll(tok, jfind_preprocess(javaTok(pat)), condition); } // tokPat must be jfind_preprocess'd static L<Int> jfindAll(L<S> tok, L<S> tokPat, ITokCondition condition default null) { TokCondition cond = toTokCondition(condition); S[] toks = toStringArray(codeTokensOnly(tokPat)); int i = -1; new L<Int> l; while ((i = findCodeTokens(tok, i+1, false, toks, cond)) >= 0) l.add(i); ret l; }
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1004162 |
Snippet name: | jfindAll |
Eternal ID of this version: | #1004162/7 |
Text MD5: | 1e09807d06ed7af2667af6ebc1995a5f |
Transpilation MD5: | bd131834d2a5120d5aed12bdda8c3854 |
Author: | stefan |
Category: | javax / tokenizing |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-03-18 15:47:33 |
Source code size: | 507 bytes / 15 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 695 / 1075 |
Version history: | 6 change(s) |
Referenced in: | [show references] |