Skip to content

Commit b9bd174

Browse files
committed
refactor: move update base methods to private
1 parent a1ac234 commit b9bd174

File tree

1 file changed

+23
-19
lines changed

1 file changed

+23
-19
lines changed

include/ada/url.h

Lines changed: 23 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -91,25 +91,6 @@ struct url : url_base {
9191
*/
9292
std::optional<std::string> hash{};
9393

94-
/** @private */
95-
inline void update_unencoded_base_hash(std::string_view input);
96-
/** @private */
97-
inline void update_base_hostname(std::string_view input);
98-
/** @private */
99-
inline void update_base_search(std::string_view input);
100-
/** @private */
101-
inline void update_base_search(std::string_view input,
102-
const uint8_t query_percent_encode_set[]);
103-
/** @private */
104-
inline void update_base_search(std::optional<std::string> input);
105-
/** @private */
106-
inline void update_base_pathname(const std::string_view input);
107-
/** @private */
108-
inline void update_base_username(const std::string_view input);
109-
/** @private */
110-
inline void update_base_password(const std::string_view input);
111-
/** @private */
112-
inline void update_base_port(std::optional<uint16_t> input);
11394
/** @private */
11495
inline void clear_pathname() override;
11596
/** @private */
@@ -388,10 +369,33 @@ struct url : url_base {
388369
const noexcept;
389370

390371
private:
372+
friend ada::url ada::parser::parse_url<ada::url>(std::string_view,
373+
const ada::url *);
391374
friend ada::url_aggregator ada::parser::parse_url<ada::url_aggregator>(
392375
std::string_view, const ada::url_aggregator *);
393376
friend void ada::helpers::strip_trailing_spaces_from_opaque_path<ada::url>(
394377
ada::url &url) noexcept;
378+
379+
/** @private */
380+
inline void update_unencoded_base_hash(std::string_view input);
381+
/** @private */
382+
inline void update_base_hostname(std::string_view input);
383+
/** @private */
384+
inline void update_base_search(std::string_view input);
385+
/** @private */
386+
inline void update_base_search(std::string_view input,
387+
const uint8_t query_percent_encode_set[]);
388+
/** @private */
389+
inline void update_base_search(std::optional<std::string> input);
390+
/** @private */
391+
inline void update_base_pathname(const std::string_view input);
392+
/** @private */
393+
inline void update_base_username(const std::string_view input);
394+
/** @private */
395+
inline void update_base_password(const std::string_view input);
396+
/** @private */
397+
inline void update_base_port(std::optional<uint16_t> input);
398+
395399
/**
396400
* @private
397401
*

0 commit comments

Comments
 (0)