Sign in Join
FPDoc Onlineexperiment

IncludeLeadingPathDelimiter function

In unit sysutils

Prepend a path delimiter if there is not already one.

Declaration

pascal
function IncludeLeadingPathDelimiter(const Path: UnicodeString)
: UnicodeString

Description

IncludeLeadingPathDelimiter will insert a path delimiter ( DirectorySeparator) in the first position of Path, if there is not already a directory separator at that position. It will return the resulting string. If the path is empty, a DirectorySeparator character is returned.

See also

Example: ex94

pascal
Program Example94;

{ This program demonstrates the IncludeLeadingPathDelimiter function }

Uses sysutils;

Begin
End.

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