decodeLangDefaulted

Undocumented in source. Be warned that the author may not have intended to support it.
@safe pure @safe pure nothrow @nogc
decodeLangDefaulted
(
const scope const(char)[] lang
,)

Examples

assert(`_`.decodeLangDefaulted(Lang.unknown) == Lang.unknown);
assert(`_`.decodeLangDefaulted(Lang.en) == Lang.en);
assert(`sv`.decodeLangDefaulted(Lang.unknown) == Lang.sv);
assert(`en`.decodeLangDefaulted(Lang.unknown) == Lang.en);
assert(Lang.unknown.toSpoken == `??`);
assert(Lang.c.toSpoken == `C`);
assert(Lang.cxx.toSpoken == `C++`);
assert(Lang.d.toSpoken == `D`);
assert(Lang.java.toSpoken == `Java`);

Meta