1 | static long parseSecondLong(S s) { |
2 | L<S> tok = javaTokC(s); |
3 | int i = 0; |
4 | while (i < l(tok) && !isInteger(tok.get(i))) ++i; |
5 | ++i; |
6 | while (i < l(tok) && !isInteger(tok.get(i))) ++i; |
7 | if (i < l(tok)) ret parseLong(tok.get(i)); |
8 | ret 0; |
9 | } |
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: | 480 / 504 |
Referenced in: | [show references] |