1 | static int parseSecondInt(String 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 parseInt(tok.get(i)); |
8 | ret 0; |
9 | } |
Began life as a copy of #1004323
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, ayivmpnvhhik, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1010997 |
| Snippet name: | parseSecondInt - parse second int in string (or return 0) |
| Eternal ID of this version: | #1010997/1 |
| Text MD5: | 4dab7b6366a3f677462cc117b075aae8 |
| Author: | stefan |
| Category: | |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-10-11 03:25:16 |
| Source code size: | 250 bytes / 9 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 607 / 683 |
| Referenced in: | [show references] |