IncludeLeadingPathDelimiter function
Prepend a path delimiter if there is not already one.
Declaration
function IncludeLeadingPathDelimiter(const Path: UnicodeString)
: UnicodeStringDescription
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
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.
