mirror of
https://github.com/dlang/phobos.git
synced 2025-05-14 17:05:58 +03:00
commit
f7858581bb
3 changed files with 3 additions and 3 deletions
|
@ -102,7 +102,7 @@ EmailStatus isEmail (Char) (const(Char)[] email, CheckDns checkDNS = CheckDns.no
|
|||
auto endOrDie = false;
|
||||
auto crlfCount = int.min; // int.min == not defined
|
||||
|
||||
foreach (i, e ; email)
|
||||
foreach (ref i, e ; email)
|
||||
{
|
||||
token = email.get(i, e);
|
||||
|
||||
|
|
|
@ -2135,7 +2135,7 @@ body
|
|||
{
|
||||
size_t ni; // current character in path
|
||||
|
||||
foreach (pi; 0 .. pattern.length)
|
||||
foreach (ref pi; 0 .. pattern.length)
|
||||
{
|
||||
C pc = pattern[pi];
|
||||
switch (pc)
|
||||
|
|
|
@ -437,7 +437,7 @@ string decode(string s, DecodeMode mode=DecodeMode.LOOSE)
|
|||
if (mode == DecodeMode.NONE) return s;
|
||||
|
||||
char[] buffer;
|
||||
foreach (i; 0 .. s.length)
|
||||
foreach (ref i; 0 .. s.length)
|
||||
{
|
||||
char c = s[i];
|
||||
if (c != '&')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue