System.SysUtils.ExcludeTrailingBackslash

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

function ExcludeTrailingBackslash(const S: string): string;

C++

extern DELPHI_PACKAGE System::UnicodeString __fastcall ExcludeTrailingBackslash(const System::UnicodeString S)/* overload */;

Properties

Type Visibility Source Unit Parent
function public
System.SysUtils.pas
System.SysUtils.hpp
System.SysUtils System.SysUtils

Description

Returns a path name without a trailing delimiter.

Note: This function is included for backward compatibility only. System.SysUtils.ExcludeTrailingPathDelimiter should be used instead.

ExcludeTrailingBackslash returns S, with the trailing path delimiter (PathDelim, '\' on Windows, '/' otherwise) removed.

Note: ExcludeTrailingBackslash works with multibyte character sets (MBCS).

See Also