parseBool

private fnbool parseBool(const(char)[] raw) pure nothrow @nogc @safe

Parse an SDL boolean literal.

Recognises: true, false, on, off (case-sensitive).

Parameters

rawThe literal text

Returns

true for true/on, false otherwise.