// you can use "..." to indicate multiple words in between // but currently the function assumes there are ... everywhere sbool match_powerWords(S pat, S s) { LS tok = javaTokNPunctuation(s); LS tokPat = listWithout(codeTokens(tok_joinEllipsis_flex(javaTok(pat))), "..."); ret ai_findSpreadOutWords(tok, tokPat) != null; }
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1022655 |
| Snippet name: | match_powerWords |
| Eternal ID of this version: | #1022655/1 |
| Text MD5: | f94d79742ffff26cf60265edd17ceb5d |
| Author: | stefan |
| Category: | javax / a.i. |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-03-27 15:23:14 |
| Source code size: | 334 bytes / 7 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 430 / 503 |
| Referenced in: | [show references] |