mirror of https://github.com/adamdruppe/arsd.git
missing import
This commit is contained in:
parent
817bdc6871
commit
c4f5e2d6d6
1
dom.d
1
dom.d
|
@ -5783,6 +5783,7 @@ final class ElementStream {
|
||||||
// unbelievable.
|
// unbelievable.
|
||||||
// Don't use any of these in your own code. Instead, try to use phobos or roll your own, as I might kill these at any time.
|
// Don't use any of these in your own code. Instead, try to use phobos or roll your own, as I might kill these at any time.
|
||||||
sizediff_t indexOfBytes(immutable(ubyte)[] haystack, immutable(ubyte)[] needle) {
|
sizediff_t indexOfBytes(immutable(ubyte)[] haystack, immutable(ubyte)[] needle) {
|
||||||
|
static import std.algorithm;
|
||||||
auto found = std.algorithm.find(haystack, needle);
|
auto found = std.algorithm.find(haystack, needle);
|
||||||
if(found.length == 0)
|
if(found.length == 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Loading…
Reference in New Issue