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

9
LINES

< > BotCompany Repo | #1011288 // parseSecondLong - parse second long in string (or return 0)

JavaX fragment (include)

static long parseSecondLong(S s) {
  L<S> tok = javaTokC(s);
  int i = 0;
  while (i < l(tok) && !isInteger(tok.get(i))) ++i;
  ++i;
  while (i < l(tok) && !isInteger(tok.get(i))) ++i;
  if (i < l(tok)) ret parseLong(tok.get(i));
  ret 0;
}

Author comment

Began life as a copy of #1010997

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: #1011288
Snippet name: parseSecondLong - parse second long in string (or return 0)
Eternal ID of this version: #1011288/1
Text MD5: f31edd5c290a1e353fce28bfcc587758
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-10-22 03:56:19
Source code size: 248 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 479 / 502
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)