Sign in Join
FPDoc Onlineexperiment

IsCurrentPathDelim function

In unit LazFileUtils

Determines if the current path delimiter matches the specified path delimiter notation.

Declaration

pascal
function IsCurrentPathDelim(Switch: TPathDelimSwitch): Boolean

Arguments

Switch

Enumeration value specifying the character compared to the current path delimiter.

Function result

Boolean result of the path delimiter comparison.

Description

IsCurrentPathDelim is a Boolean function used to determine if the path delimiter notation specified in Switch matches the current path delimiter for the system.

Switch is a TPathDelimSwitch enumeration value that indicates the notation to compare to the current path delimiter on the system running the application. Switch can include the following values:

pdsNone
No comparison is performed since it is not required. Return value is set True.
pdsSystem
No comparison is performed since it will always match the current path delimiter for the system. Return value is set True.
pdsUnix
Return value is set to True when PathDelim contains the UNIX forward slash (/) character.
pdsWindows
Return value is set to True when PathDelim contains the Windows backslash (\) character.

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