static int parseFirstInt(String s) { L<S> tok = javaTokC(s); for (int i = l(tok)-1; i >= 0; i--) if (isInteger(tok.get(i))) ret parseInt(tok.get(i)); ret 0; }
Began life as a copy of #1004323
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: | #1014447 |
Snippet name: | parseLastInt - parse last int in string (or return 0) |
Eternal ID of this version: | #1014447/1 |
Text MD5: | 080be40ad7d6336d77ede7c00e3c1d64 |
Author: | stefan |
Category: | |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-04-21 19:11:11 |
Source code size: | 180 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 315 / 344 |
Referenced in: | #1014448 - parseIntAtEnd |