1 | static long ipToInt(S ip) { |
2 | new Matches m; |
3 | assertTrue(jmatch("*.*.*.*", ip, m)); |
4 | ret parseLong($4) |
5 | | parseLong($3) << 8 |
6 | | parseLong($2) << 16 |
7 | | parseLong($1) << 24; |
8 | } |
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: | #1008727 |
Snippet name: | ipToInt (returns a long) |
Eternal ID of this version: | #1008727/3 |
Text MD5: | dfecf31cedf4cfdcb977a9f4217f157d |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-05-31 01:49:19 |
Source code size: | 191 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 571 / 584 |
Version history: | 2 change(s) |
Referenced in: | [show references] |