RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
SysUtils.ExcludeTrailingBackslash Function

Returns a path name without a trailing delimiter.

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

SysUtils

ExcludeTrailingBackslash returns S with any trailing path delimiter ('\' on Windows, '/' on Linux) removed. This function is included for backward compatibility only. New programs should use ExcludeTrailingPathDelimiter.

Note: ExcludeTrailingBackslash works with multibyte character sets.
 

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