Logo

Programming-Idioms

History of Idiom 151 > diff from v6 to v7

Edit summary for version 7 by Bart:
New Pascal implementation by user [Bart]

Version 6

2016-10-26, 13:49:34

Version 7

2016-11-09, 17:48:59

Idiom #151 Remove string trailing path separator

Remove last character from string p, if this character is the file path separator of current platform.

Note that this also transforms unix root path "/" into empty string!

Idiom #151 Remove string trailing path separator

Remove last character from string p, if this character is the file path separator of current platform.

Note that this also transforms unix root path "/" into empty string!

Imports
SysUtils
Code
begin
  p := ExcludeTrailingPathDelimiter(p);
end.