Add tanya.encoding.ascii

This commit is contained in:
2017-09-21 06:57:49 +02:00
parent 8d3a4860e6
commit 4612d5eb6d
4 changed files with 522 additions and 5 deletions

View File

@ -14,8 +14,7 @@
*/
module tanya.net.uri;
import std.ascii : isAlphaNum, isDigit;
import std.uni : isAlpha, isNumber;
import tanya.encoding.ascii;
import tanya.memory;
/**
@ -199,8 +198,8 @@ struct URL
this.pass = source[start + i + 1 .. pos];
}
}
else if (!c.isAlpha &&
!c.isNumber &&
else if (!c.isAlpha() &&
!c.isDigit() &&
c != '!' &&
c != ';' &&
c != '=' &&