Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

21
LINES

< > BotCompany Repo | #1002148 // containsIgnoreCase

JavaX fragment (include)

sbool containsIgnoreCase(Collection<S> l, S s) {
  if (l != null) for (S x : l)
    if (eqic(x, s))
      ret true;
  ret false;
}

static boolean containsIgnoreCase(S[] l, S s) {
  if (l != null) for (S x : l)
    if (eqic(x, s))
      ret true;
  ret false;
}

static boolean containsIgnoreCase(S s, char c) {
  ret indexOfIgnoreCase(s, String.valueOf(c)) >= 0;
}

static boolean containsIgnoreCase(S a, S b) {
  ret indexOfIgnoreCase(a, b) >= 0;
}

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: 565 / 1756
Version history: 3 change(s)
Referenced in: [show references]