Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

add bool removeEmptyEntries switch to tango.text.Util.delimit

Moderators: kris

Posted: 10/18/07 05:40:07 Modified: 10/18/07 05:41:29

I think it's more useful if add bool removeEmptyEntries switch to tango.text.Util.delimit. e.g.:

auto a = delimit(r"D:\a\\b.txt", "\\");
foreach(v; a)
  Cout(v).newline;  //print "D:", "a", "", "b.txt"

"D:\a\\b.txt" is a valid path on Windows, but most time, we do not need the empty string "". It's a little tedious to check and remove the repeated separator.

There are no responses to display.