The OpenD Programming Language

fromString

Performs nothrow and @nogc string to native type conversion.

  1. T fromString(const(C)[] str)
    template fromString(T)
    T
    fromString
    (
    C
    )
    (
    scope const(C)[] str
    )
  2. bool fromString(const(C)[] str, T value)

Members

Functions

fromString
T fromString(const(C)[] str)

Return Value

parsed value

Throws

nogc Exception in case of parse error or non-empty remaining input.

Floating point

Mir parsing supports up-to quadruple precision. The conversion error is 0 ULP for normal numbers. Subnormal numbers with an exponent greater than or equal to -512 have upper error bound equal to 1 ULP.

Meta