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

6
LINES

< > BotCompany Repo | #1013527 // startsWithInteger

JavaX fragment (include)

static bool startsWithInteger(S s) {
  if (empty(s)) false;
  int start = 0;
  if (s.charAt(0) == '-') ++start;
  ret l(s) >= start && isDigit(s.charAt(start));
}

Author comment

Began life as a copy of #1000567

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1013527
Snippet name: startsWithInteger
Eternal ID of this version: #1013527/1
Text MD5: 7171742826052ba450c810289ded6168
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-01-08 03:48:41
Source code size: 167 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 350 / 377
Referenced in: [show references]