13 Commits

Author SHA1 Message Date
Alan de Freitas 41b467a389 fix: decoded query-size tracking in url_base::edit_params
Latent issue exposed by b54e9e8, not introduced by it.

fix #989
2026-04-24 09:39:55 -05:00
Alan de Freitas 14fb347896 feat(ranges): specialize enable_borrowed_range for view types
All view types in Boost.URL have iterators that store raw pointers
to external data rather than references to the view object itself.
This means iterators remain valid even after the view is destroyed,
satisfying the borrowed_range requirements.

Specializations added for:
- decode_view, pct_string_view
- params_view, params_ref, params_encoded_view, params_encoded_ref
- segments_view, segments_ref, segments_encoded_view, segments_encoded_ref

fix #927
2026-01-26 12:01:22 -05:00
Vinnie Falco 7e60e85fe7 static assert is in detail 2025-10-23 21:53:22 -07:00
Alan de Freitas 83d8166d50 refactor: replace BOOST_STATIC_ASSERT with BOOST_CORE_STATIC_ASSERT
fix #934
2025-10-22 11:05:46 -05:00
Alan de Freitas 64859a8fc2 fix: consistent behavior for space-as-plus option
This commit refactors all functions so they have consistent behavior for the space-as-plus encoding option.

- any_params_iter objects store and apply the appropriate option when measuring and copying
- when the option is enabled, encoding functions encode space-as-plus and plus as %2B regardless of the charset
- normalization and comparison algorithms take into consideration special query chars whose meaning changes depending on encoding
- all params_view objects created with default options enable space-as-plus encoding

fix #903
2025-05-15 16:04:06 -05:00
alandefreitas 5118483c8b refactor: query_rule consistent interpretation
query_rule broke a grammar parse invariant by using different interpretations of the string depending on whether the reason for termination was the end of a string or a continuation with an invalid character.

fix #864
2024-10-04 11:32:08 -03:00
alandefreitas 96438f683e remove type aliases
fix #743
2023-04-28 17:27:26 -03:00
Vinnie Falco 9f5740178c encoding_opts unified options
fix #592, fix #237, fix #574
2022-10-24 16:43:37 -03:00
Vinnie Falco 76c4d7ef9d iterators return decoded std string 2022-09-19 18:42:07 -07:00
Vinnie Falco ff615a83f9 Add big string tests 2022-09-19 13:43:08 -07:00
Vinnie Falco 5ff23a3504 refactor params tests 2022-09-13 16:58:06 -07:00
Vinnie Falco e8ce191aac no_value required for param init 2022-09-10 20:28:19 -07:00
Vinnie Falco 4a9d906cf6 refactor params 2022-09-10 18:52:35 -07:00