FileName.ext

Determine file name extension as slice of input.

  1. const(char)[] ext(const(char)[] str)
    struct FileName
    nothrow extern (D) static nothrow pure @safe @nogc
    const(char)[]
    ext
    (
    const(char)[] str
    )
  2. const(char)* ext()

Parameters

str const(char)[]

file name

Return Value

Type: const(char)[]

filename extension (read-only). Points past '.' of extension. If there isn't one, return null.

Meta