Libraryless. Click here for Pure Java version (3928L/22K).
sS addPortToHost_drop80(S host, int port) { ret beforeColonOrAll(host) + (port == 80 ? "" : ":" + port); }
Began life as a copy of #1032713
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1032727 |
Snippet name: | addPortToHost_drop80 |
Eternal ID of this version: | #1032727/1 |
Text MD5: | 90364dea36fb1ace731a17075b823150 |
Transpilation MD5: | 06db1f3fe3cc6e712594dcd5598f14ec |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-10-04 00:37:10 |
Source code size: | 110 bytes / 3 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 143 / 218 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |