RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
SysUtils.IncludeTrailingPathDelimiter Function

Ensures path name ends with delimiter.

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

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) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!