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

26
LINES

< > BotCompany Repo | #1007213 // containsIC - short for containsIgnoreCase

JavaX fragment (include)

static bool containsIC(Collection<S> l, S s) {
  ret containsIgnoreCase(l, s);
}

static bool containsIC(S[] l, S s) {
  ret containsIgnoreCase(l, s);
}

static bool containsIC(S s, char c) {
  ret containsIgnoreCase(s, c);
}

static boolean containsIC(S a, S b) {
  ret containsIgnoreCase(a, b);
}

ifclass Producer
sbool containsIC(Producer<S> p, S a) {
  if (p != null && a != null) while true {
    S x = p.next();
    if (x == null) break;
    if (eqic(x, a)) true;
  }
  false;
}
endif

Author comment

Began life as a copy of #1003329

download  show line numbers  debug dex  old transpilations   

Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, wtqryiryparv, xrpafgyirdlv

No comments. add comment

Snippet ID: #1007213
Snippet name: containsIC - short for containsIgnoreCase
Eternal ID of this version: #1007213/5
Text MD5: aa93c66790bd81da0252b1d26b727aa6
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-01-04 17:52:52
Source code size: 516 bytes / 26 lines
Pitched / IR pitched: No / No
Views / Downloads: 600 / 615
Version history: 4 change(s)
Referenced in: [show references]