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

7
LINES

< > BotCompany Repo | #1011016 // charactersEqualIC

JavaX fragment (include)

1  
static bool charactersEqualIC(char c1, char c2) {
2  
  if (c1 == c2) true;
3  
  char u1 = Character.toUpperCase(c1);
4  
  char u2 = Character.toUpperCase(c2);
5  
  if (u1 == u2) true;
6  
  ret Character.toLowerCase(u1) == Character.toLowerCase(u2);
7  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1011016
Snippet name: charactersEqualIC
Eternal ID of this version: #1011016/1
Text MD5: 6fa07cdaec8f5ca855fae70464c7d3e2
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-10-11 18:07:32
Source code size: 243 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 429 / 505
Referenced in: [show references]