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

10
LINES

< > BotCompany Repo | #1002082 // isLowerHexString

JavaX fragment (include)

1  
static bool isLowerHexString(S s) {
2  
  for (int i = 0; i < l(s); i++) {
3  
    char c = s.charAt(i);
4  
    if (c >= '0' && c <= '9' || c >= 'a' && c <= 'f') {
5  
      // ok
6  
    } else
7  
      ret false;
8  
  }
9  
  ret true;
10  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 27 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ekrmjmnbrukm, elmgxqgtpvxh, gjtlkbvenryc, gwrvuhgaqvyk, ishqpsrjomds, jcllbfdqhrgy, lpdgvwnxivlt, lqnftawlhpir, mowyntqkapby, mqqgnosmbjvj, ofpaelxlmzfo, omdjrrnzbjjv, onxytkatvevr, podlckwnjdmb, pyentgdyhuwx, pzhvpgtvlbxg, snaazhdonpnp, tslmcundralx, tvejysmllsmz, vouqrxazstgt, whxojlpjdney, wnsclhtenguj, xrpafgyirdlv

No comments. add comment

Snippet ID: #1002082
Snippet name: isLowerHexString
Eternal ID of this version: #1002082/1
Text MD5: 28fc8bb398b4917a814a70c4e13dfaca
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-12-17 19:20:40
Source code size: 219 bytes / 10 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 707 / 6305
Referenced in: [show references]