Sign in Join
FPDoc Onlineexperiment

FilenameIsTrimmed function

In unit LazFileUtils

True if the specified file name contains characters to remove or resolve before use.

Declaration

pascal
function FilenameIsTrimmed(const TheFilename: string): Boolean

Arguments

TheFilename

File name to examine in the function.

Function result

False when the file name needs to trimmed.

Description

FilenameIsTrimmed is an overloaded Boolean function used to determine if the specified file name contains characters to remove or resolve before use. The variant which uses PChar values performs the comparison. The return value is False when the file name is a candidate for use of TrimFilename to remove whitespace or special characters.

Use TrimFilename to remove leading or trailing whitespace, duplicate directory separators, or relative path symbols.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.