Sign in Join
FPDoc Onlineexperiment

URIToFilename function

In unit URIParser

Convert a URI to a filename.

Declaration

pascal
function URIToFilename(const URI: string; out Filename: string)
: Boolean

Arguments

URI

URI to analyse.

Filename

Resulting filename.

Function result

True if a filename was extracted from the URI.

Description

URIToFilename returns a filename (using the correct Path Delimiter character) from URI. The URI must be of protocol File or have no protocol.

Errors

If the URI contains an unsupported protocol, False is returned.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.