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

FilenameIsTrimmed

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

Declaration

Source position: lazfileutils.pas line 58

function FilenameIsTrimmed(

  const TheFilename: string

):Boolean;

function FilenameIsTrimmed(

  StartPos: PChar;

  NameLen: Integer

):Boolean;

Arguments

TheFilename

  

File name to examine in the function.

Function result

False when the file name needs to trimmed.

Arguments

StartPos

  

PChar with the file name value.

NameLen

  

Length of the file name.

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.


Version 3.2 Generated 2024-02-25 Home