1 | static bool startsWithInteger(S s) { |
2 | if (empty(s)) false; |
3 | int start = 0; |
4 | if (s.charAt(0) == '-') ++start; |
5 | ret l(s) >= start && isDigit(s.charAt(start)); |
6 | } |
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: | 432 / 462 |
Referenced in: | [show references] |