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

4
LINES

< > BotCompany Repo | #1004962 // compareIgnoreCase

JavaX fragment (include)

static int compareIgnoreCase(S a, S b) {
  ret a == null ? (b == null ? 0 : -1) :
    b == null ? 1 : a.compareToIgnoreCase(b);
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1004962
Snippet name: compareIgnoreCase
Eternal ID of this version: #1004962/3
Text MD5: 1072fff4ea978bdbb1dc326e3758c699
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-12-18 17:01:04
Source code size: 132 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 543 / 564
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1012945 - compareIgnoreCase_keepSeparate - keeps neq-strings different
#1013287 - compareIgnoreCase_lower - uses toLower method