www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13949] New: Alias baseName() as stripPath()

https://issues.dlang.org/show_bug.cgi?id=13949

          Issue ID: 13949
           Summary: Alias baseName() as stripPath()
           Product: D
           Version: unspecified
          Hardware: x86
                OS: Windows
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: Phobos
          Assignee: nobody puremagic.com
          Reporter: bb.temp gmx.com

std.path.baseName should have an alias named stripPath

e.g:

alias stripPath = baseName;

Because it matches to the semantic used in
stripExtension
stripDrive
...

so the function set used to decompose a filename would be more homogeneous.

--
Jan 07 2015