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

9
LINES

< > BotCompany Repo | #1004657 // charRangeToChar

JavaX fragment (include)

1  
static S charRangeToChar(S s) {
2  
  try {
3  
    int i = s.indexOf('-');
4  
    if (i > 0) s = substring(s, 0, i);
5  
    ret str((char) hexToInt(s));
6  
  } catch {
7  
    ret "[" + s + "]";
8  
  }
9  
}

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: #1004657
Snippet name: charRangeToChar
Eternal ID of this version: #1004657/1
Text MD5: b483c176e2d858ab8420e98d25e1f7bf
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-08-25 13:32:58
Source code size: 188 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 545 / 535
Referenced in: [show references]