1 | sbool containsIgnoreCase(Collection<S> l, S s) { |
2 | if (l != null) for (S x : l) |
3 | if (eqic(x, s)) |
4 | ret true; |
5 | ret false; |
6 | } |
7 | |
8 | static boolean containsIgnoreCase(S[] l, S s) { |
9 | if (l != null) for (S x : l) |
10 | if (eqic(x, s)) |
11 | ret true; |
12 | ret false; |
13 | } |
14 | |
15 | static boolean containsIgnoreCase(S s, char c) { |
16 | ret indexOfIgnoreCase(s, String.valueOf(c)) >= 0; |
17 | } |
18 | |
19 | static boolean containsIgnoreCase(S a, S b) { |
20 | ret indexOfIgnoreCase(a, b) >= 0; |
21 | } |
download show line numbers debug dex old transpilations
Travelled to 16 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ekrmjmnbrukm, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1002148 |
Snippet name: | containsIgnoreCase |
Eternal ID of this version: | #1002148/4 |
Text MD5: | 90cbcf663fdd5202a584d5e11c87899e |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-10-14 16:10:26 |
Source code size: | 470 bytes / 21 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 727 / 1936 |
Version history: | 3 change(s) |
Referenced in: | [show references] |