mirror of
https://github.com/dlang/phobos.git
synced 2025-04-29 06:30:28 +03:00
Minor optimization in decode
This commit is contained in:
parent
904f56e34a
commit
dbd4e31f19
4 changed files with 20 additions and 18 deletions
|
@ -388,8 +388,7 @@ string decode(string s, DecodeMode mode=DecodeMode.LOOSE)
|
|||
{
|
||||
if (buffer.length == 0)
|
||||
{
|
||||
buffer = s.dup;
|
||||
buffer.length = i;
|
||||
buffer = s[0 .. i].dup;
|
||||
}
|
||||
if (startsWith(s[i..$],"&#"))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue