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

TrimFilename

Removes leading and trailing spaces, and resolves special characters

Declaration

Source position: lazfileutils.pas line 59

function TrimFilename(

  const AFilename: string

):string;

Arguments

AFilename

  

Path and file name for the operation

Function result

New value for the path and file name

Description

TrimFilename is a String function used to remove leading and trailing spaces (Decimal 32) in the specified path and file name. In addition, ResolveDots is called to expand directory characters (like '.' and '..') and to remove duplicate path delimiters (like '//').

See also

ResolveDots

  

Removes duplicate path delimiters and resolves . and ..

FileNameIsTrimmed

  

CleanAndExpandFilename

  

Removes whitespace and resolve special characters in the specified file name

CleanAndExpandDirectory

  

Removes whitespace and resolves special characters in the specified path

TrimAndExpandFilename

  

Cleans and resolves a file path to the specified base directory name

TrimAndExpandDirectory

  

Cleans and resolves a relative path to a base directory

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