mirror of
https://github.com/dlang/phobos.git
synced 2025-04-26 13:10:35 +03:00
clean scope imports
imports of `std.range, std.algorithm, std.array, std.string, std.format, std.uni` are affected.
This commit is contained in:
parent
b6698d0b0f
commit
c8d9afedea
16 changed files with 67 additions and 64 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue