static bool igrep(S s, S pat) { if (startsWith(pat, "^")) ret swic(s, dropPrefix("^", pat)); else ret containsIgnoreCase(s, pat); }
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: | #1004257 |
Snippet name: | igrep - simple case-invariant grep - drop-in for containsIgnoreCase |
Eternal ID of this version: | #1004257/1 |
Text MD5: | f5cf3fafacd1e474a5127bceb27ba1f1 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-08-11 22:44:41 |
Source code size: | 148 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 576 / 543 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |