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

5
LINES

< > BotCompany Repo | #1014448 // parseIntAtEnd

JavaX fragment (include)

static int parseIntAtEnd(S s) {
  int i = l(s);
  while (i > 0 && isDigit(charAt(s, i-1))) --i;
  ret parseInt(substring(s, i));
}

Author comment

Began life as a copy of #1014447

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: #1014448
Snippet name: parseIntAtEnd
Eternal ID of this version: #1014448/1
Text MD5: 0dbb928352dcbfcea9565a0360da7992
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-04-21 19:12:34
Source code size: 134 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 294 / 340
Referenced in: [show references]