mirror of
https://github.com/boostorg/url.git
synced 2026-01-19 04:42:15 +00:00
chore: ci_is_equal slow path is fixed
This commit is contained in:
@@ -40,14 +40,14 @@ ci_is_equal(
|
||||
goto slow;
|
||||
}
|
||||
return true;
|
||||
slow:
|
||||
do
|
||||
{
|
||||
a = *p1++;
|
||||
b = *p2++;
|
||||
slow:
|
||||
if( to_lower(a) !=
|
||||
to_lower(b))
|
||||
return false;
|
||||
a = *p1++;
|
||||
b = *p2++;
|
||||
}
|
||||
while(n--);
|
||||
return true;
|
||||
|
||||
@@ -88,6 +88,9 @@ public:
|
||||
|
||||
BOOST_TEST(ci_equal{}("abc", "ABC"));
|
||||
BOOST_TEST(! ci_equal{}("xz", "abc"));
|
||||
|
||||
// slow case
|
||||
BOOST_TEST(ci_is_equal("/x", "/X"));
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user