Programming-Idioms

History of Idiom 151

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!

#Edit dateEdit SummaryAuthor
👁 Δ 16 2020-05-29, 15:13 New Lua implementation by user [REUSS] REUSS
👁 Δ 15 2019-10-08, 21:14 New Csharp implementation by user [bigwavedave] bigwavedave
👁 Δ 14 2019-09-28, 09:12 New Perl implementation by user [daxim] daxim
👁 Δ 13 2018-06-12, 20:55 New Rust implementation by user [GobbleCock] GobbleCock
👁 Δ 12 2017-11-29, 09:34 keyword trim programming-idioms.org
👁 Δ 11 2017-10-28, 13:33 New Python implementation by user [Oldboy] Oldboy
👁 Δ 10 2017-07-29, 18:26 [D] It's about folder separator, not about whitespace programming-idioms.org
👁 Δ 9 2017-07-26, 09:34 New D implementation by user [Bzzzzzzzz] Bzzzzzzzz
👁 Δ 8 2016-11-09, 17:51 New Pascal implementation by user [Bart] Bart
👁 Δ 7 2016-11-09, 17:48 New Pascal implementation by user [Bart] Bart
👁 Δ 6 2016-10-26, 13:49 [Ruby] emphasize does not work steenslag
👁 Δ 5 2016-10-26, 13:48 [Ruby] Misread question steenslag
👁 Δ 4 2016-10-26, 12:13 New Ruby implementation by user [steenslag] steenslag
👁 Δ 3 2016-10-24, 12:42 Linked to idiom #150 [Remove trailing slash] programming-idioms.org
👁 Δ 2 2016-10-24, 12:41 New Go implementation by user [programming-idioms.org] programming-idioms.org
1 2016-10-24, 12:38 Idiom creation by user [programming-idioms.org] programming-idioms.org