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)

1  
static bool containsIC(Collection<S> l, S s) {
2  
  ret containsIgnoreCase(l, s);
3  
}
4  
5  
static bool containsIC(S[] l, S s) {
6  
  ret containsIgnoreCase(l, s);
7  
}
8  
9  
static bool containsIC(S s, char c) {
10  
  ret containsIgnoreCase(s, c);
11  
}
12  
13  
static boolean containsIC(S a, S b) {
14  
  ret containsIgnoreCase(a, b);
15  
}
16  
17  
ifclass Producer
18  
sbool containsIC(Producer<S> p, S a) {
19  
  if (p != null && a != null) while true {
20  
    S x = p.next();
21  
    if (x == null) break;
22  
    if (eqic(x, a)) true;
23  
  }
24  
  false;
25  
}
26  
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: 602 / 617
Version history: 4 change(s)
Referenced in: [show references]