ExpandFileNameUTF8 function
Expands the values in FileName and BaseDir to an absolute file name.
Declaration
function ExpandFileNameUTF8(const FileName: string; BaseDir: string='')
: stringArguments
FileName | File name examined in the function. |
BaseDir | Base directory used to resolve a relative path. |
Function result
The file name with an absolute path.
Description
ExpandFileNameUTF8 is a
String function which expands
the UTF-8-encoded values in FileName and BaseDir to an absolute file name. It
changes all directory separator characters to the one appropriate for the
system.
If an empty string ('') is passed in Filename, it is expanded to the current
directory using GetCurrentDirUTF8. When FileName contains the tilde character
(~), it is converted to the path to the home directory for the user
using the HOME environment variable. Relative paths in FileName
are resolved by calling ResolveDots.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
