Sign in Join
FPDoc Onlineexperiment

TrimFilename function

In unit LazFileUtils

Removes leading and trailing spaces, and resolves special characters.

Declaration

pascal
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

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