Simpler grepping for 'std.stream'

This commit is contained in:
Ferdinand Majerech 2014-07-31 14:53:14 +02:00
parent 151871e1b3
commit 830aef8df5
3 changed files with 4 additions and 5 deletions

View file

@ -22,7 +22,6 @@ import std.datetime;
import std.exception; import std.exception;
import std.format; import std.format;
import std.math; import std.math;
import std.stream;
import std.typecons; import std.typecons;
import std.string; import std.string;
@ -677,6 +676,8 @@ Node representMyClass(ref Node node, Representer representer) @system
return representer.representScalar("!myclass.tag", scalar); return representer.representScalar("!myclass.tag", scalar);
} }
import std.stream;
unittest unittest
{ {
foreach(r; [&representMyStruct, foreach(r; [&representMyStruct,

View file

@ -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: /// Params:
/// ///

View file

@ -95,14 +95,12 @@ auto fixUTFByteOrder(ubyte[] array)
None = ubyte.max None = ubyte.max
} }
// From std.stream // These 2 are from std.stream
static immutable ubyte[][5] byteOrderMarks = [ [0xEF, 0xBB, 0xBF], static immutable ubyte[][5] byteOrderMarks = [ [0xEF, 0xBB, 0xBF],
[0xFF, 0xFE], [0xFF, 0xFE],
[0xFE, 0xFF], [0xFE, 0xFF],
[0xFF, 0xFE, 0x00, 0x00], [0xFF, 0xFE, 0x00, 0x00],
[0x00, 0x00, 0xFE, 0xFF] ]; [0x00, 0x00, 0xFE, 0xFF] ];
// From std.stream
static immutable Endian[5] bomEndian = [ std.system.endian, static immutable Endian[5] bomEndian = [ std.system.endian,
Endian.littleEndian, Endian.littleEndian,
Endian.bigEndian, Endian.bigEndian,