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

7
LINES

< > BotCompany Repo | #1004323 // parseFirstInt - parse first int in string (or return 0)

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2719L/17K).

static int parseFirstInt(String s) {
  return parseInt(jextract("<int>", s));
}

static int parseFirstInt(Iterable<S> l) {
  ret parseInt(firstIntegerString(l));
}

Author comment

Began life as a copy of #1000811

download  show line numbers  debug dex  old transpilations   

Travelled to 16 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1004323
Snippet name: parseFirstInt - parse first int in string (or return 0)
Eternal ID of this version: #1004323/5
Text MD5: 145d5af4cb23b6b3d64af3e3e879d4a4
Transpilation MD5: 377043800a173123771c6d779320f53d
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-01-26 13:53:41
Source code size: 169 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 686 / 776
Version history: 4 change(s)
Referenced in: [show references]