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

no lut chars

fix #547
This commit is contained in:
alandefreitas
2022-09-15 13:38:26 -03:00
parent 16013f0dc5
commit 13eac52f0d
2 changed files with 5 additions and 6 deletions

View File

@@ -2242,11 +2242,12 @@ edit_params(
//------------------------------------------------
template<class CharSet>
void
url_base::
normalize_octets_impl(
int id,
grammar::lut_chars const& cs,
CharSet const& allowed,
op_t& op) noexcept
{
char* it = s_ + u_.offset(id);
@@ -2270,7 +2271,7 @@ normalize_octets_impl(
&buf,
&buf + 1,
string_view(it, 3));
if (cs(buf))
if (allowed(buf))
{
*dest = buf;
it += 3;

View File

@@ -36,9 +36,6 @@ struct any_segments_iter;
struct params_iter_impl;
struct segments_iter_impl;
}
namespace grammar {
class lut_chars;
}
#endif
/** Common functionality for containers
@@ -2607,8 +2604,9 @@ private:
url_view_base const& base,
url_view_base const& ref);
template<class CharSet>
void normalize_octets_impl(int,
grammar::lut_chars const& cs, op_t&) noexcept;
CharSet const& allowed, op_t&) noexcept;
void decoded_to_lower_impl(int id) noexcept;
void to_lower_impl(int id) noexcept;
};