Sign in Join
FPDoc Onlineexperiment

CleanAndExpandFilename function

In unit LazFileUtils

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

Declaration

pascal
function CleanAndExpandFilename(const Filename: string): string

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 ('').

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.