Prepend a path delimiter if there is not already one.
Source position: finah.inc line 40
function IncludeLeadingPathDelimiter( |
const Path: UnicodeString |
):UnicodeString; |
const Path: RawByteString |
):RawByteString; |
IncludeLeadingPathDelimiter will insert a path delimiter (#rtl.system.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.
|
Add trailing directory separator to a pathname, if needed. |
|
|
Strip the leading path delimiter of a path. |
|
|
Strip trailing directory separator from a pathname, if needed. |
|
|
Concatenate an array of paths to form a single path. |
Program Example94; { This program demonstrates the IncludeLeadingPathDelimiter function } Uses sysutils; Begin End.