RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
SysUtils.IncludeTrailingBackslash Function

Ensures path name ends with delimiter

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

SysUtils

IncludeTrailingBackslash ensures that a path name ends with a trailing path delimiter ('\" on Windows, '/' on Linux). This function is included for backward-compatibility only. New programs should use IncludeTrailingPathDelimiter.

Note: IncludeTrailingBackslash works with multibyte character sets.
 

 

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