View source code
Display the source code in std/encoding.d from which this page was generated on github.
Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using local clone.

Variable std.encoding.bomTable

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

immutable(Tuple!(std.encoding.BOM,"schema",ubyte[],"sequence")[]) bomTable = [Tuple(BOM.none, null), Tuple(BOM.utf32be, [cast(ubyte)0u, cast(ubyte)0u, cast(ubyte)254u, cast(ubyte)255u]), Tuple(BOM.utf32le, [cast(ubyte)255u, cast(ubyte)254u, cast(ubyte)0u, cast(ubyte)0u]), Tuple(BOM.utf7, [cast(ubyte)43u, cast(ubyte)47u, cast(ubyte)118u, cast(ubyte)57u]), Tuple(BOM.utf7, [cast(ubyte)43u, cast(ubyte)47u, cast(ubyte)118u, cast(ubyte)43u]), Tuple(BOM.utf7, [cast(ubyte)43u, cast(ubyte)47u, cast(ubyte)118u, cast(ubyte)47u]), Tuple(BOM.utf7, [cast(ubyte)43u, cast(ubyte)47u, cast(ubyte)118u, cast(ubyte)56u, cast(ubyte)45u]), Tuple(BOM.utf7, [cast(ubyte)43u, cast(ubyte)47u, cast(ubyte)118u, cast(ubyte)56u]), Tuple(BOM.utf1, [cast(ubyte)247u, cast(ubyte)100u, cast(ubyte)76u]), Tuple(BOM.utfebcdic, [cast(ubyte)221u, cast(ubyte)115u, cast(ubyte)102u, cast(ubyte)115u]), Tuple(BOM.scsu, [cast(ubyte)14u, cast(ubyte)254u, cast(ubyte)255u]), Tuple(BOM.bocu1, [cast(ubyte)251u, cast(ubyte)238u, cast(ubyte)40u]), Tuple(BOM.gb18030, [cast(ubyte)132u, cast(ubyte)49u, cast(ubyte)149u, cast(ubyte)51u]), Tuple(BOM.utf8, [cast(ubyte)239u, cast(ubyte)187u, cast(ubyte)191u]), Tuple(BOM.utf16be, [cast(ubyte)254u, cast(ubyte)255u]), Tuple(BOM.utf16le, [cast(ubyte)255u, cast(ubyte)254u])];


Janice Caron


Boost License 1.0.