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

7
LINES

< > BotCompany Repo | #1012945 // compareIgnoreCase_keepSeparate - keeps neq-strings different

JavaX fragment (include)

static int compareIgnoreCase_keepSeparate(S a, S b) {
  if (a == null) ret b == null ? 0 : -1;
  if (b == null) ret 1;
  int c = a.compareToIgnoreCase(b);
  if (c != 0) ret c;
  ret a.compareTo(b);
}

Author comment

Began life as a copy of #1004962

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: #1012945
Snippet name: compareIgnoreCase_keepSeparate - keeps neq-strings different
Eternal ID of this version: #1012945/1
Text MD5: c131538c44aa2b3a04a3e47a298b74f4
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:03:51
Source code size: 205 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 317 / 354
Referenced in: [show references]