FileName.ext

Determine file name extension as slice of input.

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

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