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

ChompPathDelim

Removes a trailing path delimiter from the specified value

Declaration

Source position: lazfileutils.pas line 91

function ChompPathDelim(

  const Path: string

):string;

Arguments

Path

  

Path information for the function

Function result

Path information after removing the trailing path delimiter

Description

ChompPathDelim is a String function used to remove a trailing path delimiter from the specified value in Path. For environments where UNC paths are allowed, ChompPathDelim ensures that the UNC path delimiters are retained. Windows Device identifiers, such as "D:" are also retained in Path.

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