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

FilenameIsTrimmed

Declaration

Source position: lazfileutils.pas line 57

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 ro 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.

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