Tidy up core files

This commit is contained in:
Vinnie Falco
2018-12-12 19:32:22 -08:00
parent d8a23776d4
commit 120d5481e2
50 changed files with 770 additions and 577 deletions
+12 -12
View File
@@ -64,25 +64,25 @@ iequals(
auto p1 = lhs.data();
auto p2 = rhs.data();
char a, b;
// fast loop
while(n--)
{
a = *p1++;
b = *p2++;
if(a != b)
{
// slow loop
do
{
if(ascii_tolower(a) != ascii_tolower(b))
return false;
a = *p1++;
b = *p2++;
}
while(n--);
return true;
}
goto slow;
}
return true;
slow:
do
{
if(ascii_tolower(a) != ascii_tolower(b))
return false;
a = *p1++;
b = *p2++;
}
while(n--);
return true;
}
} // detail