baseName(path).startsWith(something)

Martin Nowak code at dawg.eu
Thu Jan 9 10:53:57 PST 2014


Neither this

if (path.baseName.startsWith(something))
     doThis();

nor this

if (startsWith(baseName(path), something))
     doThis();

but a combination of the two

if (baseName(path).startsWith(something))
     doThis();

make it possible to write readable sentences.

-Martin


More information about the Digitalmars-d mailing list