SysUtils.ExcludeTrailingPathDelimiter
From RAD Studio VCL Reference
Contents |
Delphi Information
From SysUtils.pas
function ExcludeTrailingPathDelimiter(const S: string): string; overload;
Unit: SysUtils
Type: function
Visibility: public
C++ Information
From SysUtils.hpp
System::UnicodeString __fastcall ExcludeTrailingPathDelimiter(System::UnicodeString S);
Unit: SysUtils
Type: function
Description
Returns a path name without a trailing delimiter.
ExcludeTrailingPathDelimiter returns S with any trailing path delimiter ('\' on Windows, '/' on Linux and Macintosh) removed. If the last character in S is a delimiter, the return value is S with the last character removed. Otherwise, S is returned unchanged.
Note: ExcludeTrailingPathDelimiter works with multibyte character sets.