bomTable

Mapping of a byte sequence to Byte Order Mark (BOM)

immutable
auto bomTable = [BOMSeq(BOM.none, null), BOMSeq(BOM.utf32be, cast(ubyte[])([0x00, 0x00, 0xFE, 0xFF])), BOMSeq(BOM.utf32le, cast(ubyte[])([0xFF, 0xFE, 0x00, 0x00])), BOMSeq(BOM.utf7, cast(ubyte[])([0x2B, 0x2F, 0x76, 0x39])), BOMSeq(BOM.utf7, cast(ubyte[])([0x2B, 0x2F, 0x76, 0x2B])), BOMSeq(BOM.utf7, cast(ubyte[])([0x2B, 0x2F, 0x76, 0x2F])), BOMSeq(BOM.utf7, cast(ubyte[])([0x2B, 0x2F, 0x76, 0x38, 0x2D])), BOMSeq(BOM.utf7, cast(ubyte[])([0x2B, 0x2F, 0x76, 0x38])), BOMSeq(BOM.utf1, cast(ubyte[])([0xF7, 0x64, 0x4C])), BOMSeq(BOM.utfebcdic, cast(ubyte[])([0xDD, 0x73, 0x66, 0x73])), BOMSeq(BOM.scsu, cast(ubyte[])([0x0E, 0xFE, 0xFF])), BOMSeq(BOM.bocu1, cast(ubyte[])([0xFB, 0xEE, 0x28])), BOMSeq(BOM.gb18030, cast(ubyte[])([0x84, 0x31, 0x95, 0x33])), BOMSeq(BOM.utf8, cast(ubyte[])([0xEF, 0xBB, 0xBF])), BOMSeq(BOM.utf16be, cast(ubyte[])([0xFE, 0xFF])), BOMSeq(BOM.utf16le, cast(ubyte[])([0xFF, 0xFE]))];

Meta