Simpler grepping for 'std.stream'
This commit is contained in:
parent
151871e1b3
commit
830aef8df5
|
@ -22,7 +22,6 @@ import std.datetime;
|
|||
import std.exception;
|
||||
import std.format;
|
||||
import std.math;
|
||||
import std.stream;
|
||||
import std.typecons;
|
||||
import std.string;
|
||||
|
||||
|
@ -677,6 +676,8 @@ Node representMyClass(ref Node node, Representer representer) @system
|
|||
return representer.representScalar("!myclass.tag", scalar);
|
||||
}
|
||||
|
||||
import std.stream;
|
||||
|
||||
unittest
|
||||
{
|
||||
foreach(r; [&representMyStruct,
|
||||
|
|
|
@ -24,7 +24,7 @@ ubyte[] streamToBytesGC(Stream stream) @trusted nothrow
|
|||
}
|
||||
}
|
||||
|
||||
/// Read all data from a std.stream.Stream into an array of bytes.
|
||||
/// Read all data from a Stream into an array of bytes.
|
||||
///
|
||||
/// Params:
|
||||
///
|
||||
|
|
|
@ -95,14 +95,12 @@ auto fixUTFByteOrder(ubyte[] array)
|
|||
None = ubyte.max
|
||||
}
|
||||
|
||||
// From std.stream
|
||||
// These 2 are from std.stream
|
||||
static immutable ubyte[][5] byteOrderMarks = [ [0xEF, 0xBB, 0xBF],
|
||||
[0xFF, 0xFE],
|
||||
[0xFE, 0xFF],
|
||||
[0xFF, 0xFE, 0x00, 0x00],
|
||||
[0x00, 0x00, 0xFE, 0xFF] ];
|
||||
|
||||
// From std.stream
|
||||
static immutable Endian[5] bomEndian = [ std.system.endian,
|
||||
Endian.littleEndian,
|
||||
Endian.bigEndian,
|
||||
|
|
Loading…
Reference in a new issue