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

CleanAndExpandFilename

Removes whitespace and resolves special characters in the specified file name.

Declaration

Source position: lazfileutils.pas line 62

function CleanAndExpandFilename(

  const Filename: string

):string;

Arguments

Filename

  

File name to examine in the function.

Function result

File name with whitespace removed and special characters 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 ('').


Version 3.2 Generated 2024-02-25 Home