Function matchTypeFromString
Get symbolic constant of match type according to the string.
Returns
MagicMatch
for passed string, or MagicMatch
if type name is unknown.
Example
assert(matchTypeFromString("string") == MagicMatch .Type .string_);
assert(matchTypeFromString("little32") == MagicMatch .Type .little32);
assert(matchTypeFromString("byte") == MagicMatch .Type .byte_);
assert(matchTypeFromString("") == MagicMatch .Type .string_);