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

6
LINES

< > BotCompany Repo | #1015248 // parseHexChar

JavaX fragment (include)

static int parseHexChar(char c) {
  if (c >= '0' && c <= '9') ret charDiff(c, '0');
  if (c >= 'a' && c <= 'f') ret charDiff(c, 'a')+10;
  if (c >= 'A' && c <= 'F') ret charDiff(c, 'A')+10;
  ret -1;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 20 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ekrmjmnbrukm, gwrvuhgaqvyk, ishqpsrjomds, lnbujpyubztb, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, omdjrrnzbjjv, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, whxojlpjdney, xrpafgyirdlv

No comments. add comment

Snippet ID: #1015248
Snippet name: parseHexChar
Eternal ID of this version: #1015248/2
Text MD5: 930558e192c43952660a9f90d56b7289
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-11 02:18:05
Source code size: 206 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 408 / 975
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)