RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
SysUtils.IncludeTrailingPathDelimiter Function

Ensures path name ends with delimiter.

Pascal
function IncludeTrailingPathDelimiter(const S: string): string;
C++
AnsiString IncludeTrailingPathDelimiter(const AnsiString S);

SysUtils

IncludeTrailingPathDelimiter ensures that a path name ends with a trailing path delimiter ('\" on Windows, '/' on Linux). If S already ends with a trailing delimiter character, it is returned unchanged; otherwise S with appended delimiter character is returned.

Note: IncludeTrailingPathDelimiter works with multibyte character sets.
 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!