clean scope imports

imports of `std.range, std.algorithm, std.array, std.string,
std.format, std.uni` are affected.
This commit is contained in:
Ilya Yaroshenko 2014-11-21 00:08:35 +03:00
parent b6698d0b0f
commit c8d9afedea
16 changed files with 67 additions and 64 deletions

View file

@ -397,19 +397,19 @@ size_t uriLength(Char)(in Char[] s) if (isSomeChar!Char)
* https://
* www.
*/
import std.string : icmp;
import std.uni : icmp;
size_t i;
if (s.length <= 4)
return -1;
if (s.length > 7 && std.string.icmp(s[0 .. 7], "http://") == 0) {
if (s.length > 7 && icmp(s[0 .. 7], "http://") == 0) {
i = 7;
}
else
{
if (s.length > 8 && std.string.icmp(s[0 .. 8], "https://") == 0)
if (s.length > 8 && icmp(s[0 .. 8], "https://") == 0)
i = 8;
else
return -1;