parseLanguage

Parse Language lang.

@safe pure nothrow @safe @nogc
parseLanguage
(
scope const(char)[] lang
,)

Examples

assert(`_`.parseLanguage(Language.unknown) == Language.unknown);
assert(`_`.parseLanguage(Language.en) == Language.en);
assert(`sv`.parseLanguage(Language.unknown) == Language.sv);
assert(`en`.parseLanguage(Language.unknown) == Language.en);

Meta