Make intToString -> readString more generic
Make readString work with any char range and unsigned integral type.
This commit is contained in:
@ -305,7 +305,8 @@ struct URL
|
||||
*/
|
||||
private bool parsePort(const(char)[] port) @nogc nothrow pure @safe
|
||||
{
|
||||
return stringToInt(port[1 .. $], this.port);
|
||||
auto portNumber = port[1 .. $];
|
||||
return readString(portNumber, this.port) || portNumber[0] == '/';
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user