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

7
LINES

< > BotCompany Repo | #1012106 // swicOneOf - swic (startsWithIgnoreCase), multiple checks

JavaX fragment (include)

static bool swicOneOf(S s, S... l) {
  for (S x : l) if (swic(s, x)) true; false;
}

static bool swicOneOf(S s, Matches m, S... l) {
  for (S x : l) if (swic(s, x, m)) true; false;
}

Author comment

Began life as a copy of #1003973

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1012106
Snippet name: swicOneOf - swic (startsWithIgnoreCase), multiple checks
Eternal ID of this version: #1012106/4
Text MD5: 7c81830b63642783101241a3876becb7
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-02-28 10:38:12
Source code size: 188 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 478 / 487
Version history: 3 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1012594 - swicOneOf_trim