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

11
LINES

< > BotCompany Repo | #1002835 // swic - synonym of startsWithIgnoreCase

JavaX fragment (include)

static boolean swic(S a, S b) {
  ret startsWithIgnoreCase(a, b);
}

ifclass Matches
  static bool swic(S a, S b, Matches m) {
    if (!swic(a, b)) false;
    m.m = new S[] {substring(a, l(b))};
    true;
  }
endif

Author comment

Began life as a copy of #1001499

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: #1002835
Snippet name: swic - synonym of startsWithIgnoreCase
Eternal ID of this version: #1002835/2
Text MD5: d51fdd5af13278af7bf2c718689c641b
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-05-28 18:38:23
Source code size: 224 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 827 / 1526
Version history: 1 change(s)
Referenced in: #1003309 - swicAny - tests if string starts with any of a number of prefixes (ignoring case)
#1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1007783 - startsWithIC - synonym of startsWithIgnoreCase
#1011049 - swic_trim - trim matches
#1026161 - swic_slash - special slash handling
#1026497 - swic_notSame
#3000382 - Answer for ferdie (>> t = 1, f = 0)