mirror of
https://github.com/dlang/phobos.git
synced 2025-04-27 13:40:20 +03:00

- partially Revert "Merge pull request #4493 from schveiguy/fixcycles2" - recreate processinit (and import it from std.process) to call std.process shared ctor w/o creating a cycle - keep it separate from phobosinit to not drag std.encoding into any binary using std.process
25 lines
1 KiB
D
25 lines
1 KiB
D
// Written in the D programming language.
|
|
|
|
/++
|
|
The purpose of this module is to perform static construction away from the
|
|
normal modules to eliminate cyclic construction errors.
|
|
|
|
Copyright: Copyright 2011 - 2016
|
|
License: $(HTTP www.boost.org/LICENSE_1_0.txt, Boost License 1.0).
|
|
Authors: Jonathan M Davis, Kato Shoichi, Steven Schveighoffer
|
|
Source: $(PHOBOSSRC std/internal/_phobosinit.d)
|
|
+/
|
|
module std.internal.phobosinit;
|
|
|
|
shared static this()
|
|
{
|
|
import std.encoding : EncodingScheme;
|
|
EncodingScheme.register("std.encoding.EncodingSchemeASCII");
|
|
EncodingScheme.register("std.encoding.EncodingSchemeLatin1");
|
|
EncodingScheme.register("std.encoding.EncodingSchemeLatin2");
|
|
EncodingScheme.register("std.encoding.EncodingSchemeWindows1250");
|
|
EncodingScheme.register("std.encoding.EncodingSchemeWindows1252");
|
|
EncodingScheme.register("std.encoding.EncodingSchemeUtf8");
|
|
EncodingScheme.register("std.encoding.EncodingSchemeUtf16Native");
|
|
EncodingScheme.register("std.encoding.EncodingSchemeUtf32Native");
|
|
}
|