1 | // you can use "..." to indicate multiple words in between |
2 | // but currently the function assumes there are ... everywhere |
3 | sbool match_powerWords(S pat, S s) { |
4 | LS tok = javaTokNPunctuation(s); |
5 | LS tokPat = listWithout(codeTokens(tok_joinEllipsis_flex(javaTok(pat))), "..."); |
6 | ret ai_findSpreadOutWords(tok, tokPat) != null; |
7 | } |
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: | 247 / 309 |
Referenced in: | [show references] |