Sign in Join
FPDoc Onlineexperiment

FilenameToURI function

In unit URIParser

Construct a URI from a filename.

Declaration

pascal
function FilenameToURI(const Filename: string; Encode: Boolean=True)
: string

Arguments

Filename

Filename to construct URI from.

Encode

True if invalid Path characters in FileName are encoded (escaped) in the URI.

Function result

file: protocol URI.

Description

FilenameToURI takes Filename and constructs a file: protocol URI from it.

Errors

None.

See also

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