Table of Contents

TUri.ParseHost Method

Overloads

TUri.ParseHost(string, string, string)

Splits a host authority string into its host and port parts, returning the port as a string.

Syntax

Unit: Sparkle.Uri

class procedure TUri.ParseHost(const S: string; var Host: string; var Port: string); overload;

Parameters

<-> Parameter Type Description
const S string The authority string, which may include an IPv6 literal and an optional :port.
var Host string Receives the host portion.
var Port string Receives the port portion as a string, or an empty string when no port is present.

See also

TUri.ParseHost(string, string, Integer)

Splits a host authority string into its host and port parts, returning the port as an integer.

Syntax

Unit: Sparkle.Uri

class procedure TUri.ParseHost(const S: string; var Host: string; var Port: Integer); overload;

Parameters

<-> Parameter Type Description
const S string The authority string, which may include an IPv6 literal and an optional :port.
var Host string Receives the host portion.
var Port Integer Receives the port portion as an integer.

See also