1 | static bool igrep(S s, S pat) { |
2 | if (startsWith(pat, "^")) |
3 | ret swic(s, dropPrefix("^", pat)); |
4 | else |
5 | ret containsIgnoreCase(s, pat); |
6 | } |
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: | 578 / 545 |
Referenced in: | [show references] |