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

3
LINES

< > BotCompany Repo | #1032727 // addPortToHost_drop80

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

Libraryless. Click here for Pure Java version (3928L/22K).

sS addPortToHost_drop80(S host, int port) {
  ret beforeColonOrAll(host) + (port == 80 ? "" : ":" + port);
}

Author comment

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: 85 / 135
Referenced in: [show references]