ParseURI function
Parse a URI and split it into its constituent parts.
Declaration
function ParseURI(const URI: string; Decode: Boolean=True): TURI
; overloadArguments
URI | String with the URI to parse in the routine. |
Decode | Indicates if encoded (escaped) values in the string are decoded in the routine. Default is True. |
Function result
Record type with the component values for the URI.
Description
ParseURI decodes
URI and returns the various
parts of the URI in the result record.
The function accepts the most general URI scheme:
proto://user:pwd@host:port/path/document?params#bookmark
Missing (optional) parts in the URI will be left blank in the result record. If a default protocol and port are specified, they will be used in the record if the corresponding part is not present in the URI.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
