Logo

Programming-Idioms

History of Idiom 151 > diff from v18 to v19

Edit summary for version 19 by programming-idioms.org:
into empty string => into the empty string

Version 18

2020-07-15, 16:39:55

Version 19

2021-03-26, 17:40:55

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 the empty string!

Variables
p
Variables
p
Extra Keywords
trim
Extra Keywords
trim