FileName.removeExt

Return file name without extension.

TODO: Once slice are used everywhere and \0 is not assumed, this can be turned into a simple slicing.

  1. const(char)* removeExt(const(char)* str)
  2. const(char)[] removeExt(const(char)[] str)
    struct FileName
    extern (D) nothrow static
    const(char)[]
    removeExt
    (
    const(char)[] str
    )

Parameters

str const(char)[]

file name

Return Value

Type: const(char)[]

mem.xmalloc'd filename with extension removed.

Meta