| [Overview][Constants][Types][Procedures and functions][Variables][Index] |
Expands the values in FileName and BaseDir to an absolute file name
Source position: lazfileutils.pas line 109
function ExpandFileNameUTF8( |
const FileName: string; |
BaseDir: string = '' |
):string; |
FileName |
|
File name for the operation |
BaseDir |
|
Base directory for the operation |
File name with an absolute path
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.
| lazarus-ccr.sourceforge.net |