[Overview][Constants][Types][Procedures and functions][Variables][Index] Reference for unit 'LazFileUtils' (#lazutils)

CleanAndExpandFilename

Removes whitespace and resolve special characters in the specified file name

Declaration

Source position: lazfileutils.pas line 61

function CleanAndExpandFilename(

  const Filename: string

):string;

Arguments

Filename

  

File name to examine in the function

Function result

File name with whitespace removed and special charcters resolved

Description

CleanAndExpandFilename is a String function used to remove whitespace and to resolve special characters in the specified file name. CleanAndExpandFilename calls TrimFilename and ExpandFileNameUTF8 to get the return value for the function. The return value is the current directory when Filename contains an empty string ('').

The latest version of this document can be found at lazarus-ccr.sourceforge.net.