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

21
LINES

< > BotCompany Repo | #1002148 - containsIgnoreCase

JavaX fragment (include)

static boolean 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   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, xrpafgyirdlv

No comments. add comment

Snippet ID: #1002148
Snippet name: containsIgnoreCase
Eternal ID of this version: #1002148/3
Text MD5: b18585ad96e4c3a7cefa65576eb28844
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-09-02 23:32:51
Source code size: 479 bytes / 21 lines
Pitched / IR pitched: No / No
Views / Downloads: 388 / 1480
Version history: 2 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1002148 & http://1002148.tinybrain.de