isNoMagic

Check if value is __NOMAGIC__. This means magic rules from the less preferable MIME paths should be ignored.

@nogc @trusted pure nothrow
bool
isNoMagic
(
T
)
(
scope const(T)[] value
)
if (
is(T == char) ||
is(T == ubyte)
||
is(T == byte)
||
is(T == void)
)

Examples

assert(isNoMagic("__NOMAGIC__"));
assert(!isNoMagic("somemagic"));

Meta