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

7
LINES

< > BotCompany Repo | #1019959 // parseDigit

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (34L/1K).

1  
static int parseDigit(char c) {
2  
  ret c >= '0' && c <= '9' ? c-'0' : 0;
3  
}
4  
5  
static int parseDigit(S s, int i) {
6  
  ret parseDigit(s.charAt(i));
7  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 9 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1019959
Snippet name: parseDigit
Eternal ID of this version: #1019959/4
Text MD5: bdf8495b8435f512b17d7c2fbefa9fad
Transpilation MD5: 7a35fe5d03976312cf1efbc2df7baecf
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-01-21 04:07:04
Source code size: 149 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 366 / 448
Version history: 3 change(s)
Referenced in: [show references]