2
0
mirror of https://github.com/boostorg/url.git synced 2026-02-21 15:32:13 +00:00

dont count slash in seg iter decrement

This commit is contained in:
Vinnie Falco
2022-09-08 16:02:55 -07:00
parent 1364a72ff5
commit d0eb29272d

View File

@@ -50,6 +50,9 @@ segments_iter_impl(
, pos(pos_)
, index(index_)
{
if(index == 0)
pos = path_prefix(ref.string());
update();
}
void
@@ -142,7 +145,10 @@ decrement() noexcept
{
--p;
if(*p == '/')
{
++dn;
break;
}
if(*p == '%')
dn += 2;
}