Programming-Idioms

History of Idiom 151 > diff from v2 to v3

Edit summary for version 3 :
Linked to idiom #150 [Remove trailing slash]

Version 2

2016-10-24, 12:41:33

Version 3

2016-10-24, 12:42:34

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!