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

ExtractFileNameWithoutExt

Gets the value from AFilename prior to the '.' character that starts the file extension.

Declaration

Source position: lazfileutils.pas line 44

function ExtractFileNameWithoutExt(

  const AFilename: string

):string;

Arguments

AFilename

  

Qualified path and file name examined in the method.

Function result

File name (including path) after the file extension has been removed.

Description

Processes characters in AFilename in reverse order to locate the '.' that starts the file extension. If a '.' character is not found, the process continues until a path or directory delimiter is found. The return value defaults to AFilename if a path or directory delimiter occurs before a '.' character.


Version 3.2 Generated 2024-02-25 Home