mirror of
https://github.com/dlang/phobos.git
synced 2025-04-30 15:10:46 +03:00
Style fix: specify/remove local imports
This commit is contained in:
parent
6f1690f6b1
commit
64217c8965
4 changed files with 7 additions and 9 deletions
|
@ -639,7 +639,7 @@ if (isRandomAccessRange!Range && hasLength!Range && hasSlicing!Range)
|
|||
// Loop invariant
|
||||
version(unittest)
|
||||
{
|
||||
import std.algorithm.searching;
|
||||
import std.algorithm.searching : all;
|
||||
assert(r[0 .. lo].all!(x => !lt(p, x)));
|
||||
assert(r[hi + 1 .. r.length].all!(x => !lt(x, p)));
|
||||
}
|
||||
|
|
|
@ -259,7 +259,6 @@ template BacktrackingMatcher(bool CTregex)
|
|||
return val;
|
||||
else
|
||||
{
|
||||
import std.stdio;
|
||||
if (atEnd)
|
||||
break;
|
||||
search();
|
||||
|
|
|
@ -673,8 +673,8 @@ version(unittest)
|
|||
{
|
||||
private void check(T)(string input, T re, size_t idx=uint.max, int line=__LINE__)
|
||||
{
|
||||
import std.regex, std.conv;
|
||||
import std.stdio;
|
||||
import std.regex : regex;
|
||||
import std.conv : text, to;
|
||||
auto rex = regex(re, "s");
|
||||
auto m = make(rex);
|
||||
auto s = Input!char(input);
|
||||
|
@ -688,8 +688,8 @@ version(unittest)
|
|||
{
|
||||
private void checkFail(T)(string input, T re, size_t idx=uint.max, int line=__LINE__)
|
||||
{
|
||||
import std.regex, std.conv;
|
||||
import std.stdio;
|
||||
import std.regex : regex;
|
||||
import std.conv : text, to;
|
||||
auto rex = regex(re, "s");
|
||||
auto m = make(rex);
|
||||
auto s = Input!char(input);
|
||||
|
@ -700,8 +700,8 @@ version(unittest)
|
|||
|
||||
private void checkEmpty(T)(T re)
|
||||
{
|
||||
import std.regex, std.conv;
|
||||
import std.stdio;
|
||||
import std.regex : regex;
|
||||
import std.conv : to;
|
||||
auto rex = regex(re);
|
||||
auto m = BitNfa(rex);
|
||||
assert(m.empty, "Should be empty "~to!string(re));
|
||||
|
|
|
@ -490,7 +490,6 @@ pure:
|
|||
|
||||
@trusted void reverseBytecode()(Bytecode[] code) pure
|
||||
{
|
||||
import std.typecons;
|
||||
Bytecode[] rev = new Bytecode[code.length];
|
||||
uint revPc = cast(uint)rev.length;
|
||||
Stack!(Tuple!(uint, uint, uint)) stack;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue