@@ -174,7 +174,7 @@ inline void url_aggregator::update_base_search(std::string_view input) {
174174 ADA_ASSERT_TRUE (validate ());
175175 ADA_ASSERT_TRUE (!helpers::overlaps (input, buffer));
176176 if (input.empty ()) {
177- clear_base_search ();
177+ clear_search ();
178178 return ;
179179 }
180180
@@ -412,9 +412,8 @@ inline void url_aggregator::append_base_username(const std::string_view input) {
412412 ADA_ASSERT_TRUE (validate ());
413413}
414414
415- inline void url_aggregator::clear_base_password () {
416- ada_log (" url_aggregator::clear_base_password " , to_string (), " \n " ,
417- to_diagram ());
415+ inline void url_aggregator::clear_password () {
416+ ada_log (" url_aggregator::clear_password " , to_string (), " \n " , to_diagram ());
418417 ADA_ASSERT_TRUE (validate ());
419418 if (!has_password ()) {
420419 return ;
@@ -442,7 +441,7 @@ inline void url_aggregator::update_base_password(const std::string_view input) {
442441
443442 // TODO: Optimization opportunity. Merge the following removal functions.
444443 if (input.empty ()) {
445- clear_base_password ();
444+ clear_password ();
446445
447446 // Remove username too, if it is empty.
448447 if (!has_non_empty_username ()) {
@@ -543,7 +542,7 @@ inline void url_aggregator::update_base_port(uint32_t input) {
543542 ada_log (" url_aggregator::update_base_port" );
544543 ADA_ASSERT_TRUE (validate ());
545544 if (input == url_components::omitted) {
546- clear_base_port ();
545+ clear_port ();
547546 return ;
548547 }
549548 // calling std::to_string(input.value()) is unfortunate given that the port
@@ -569,8 +568,8 @@ inline void url_aggregator::update_base_port(uint32_t input) {
569568 ADA_ASSERT_TRUE (validate ());
570569}
571570
572- inline void url_aggregator::clear_base_port () {
573- ada_log (" url_aggregator::clear_base_port " );
571+ inline void url_aggregator::clear_port () {
572+ ada_log (" url_aggregator::clear_port " );
574573 ADA_ASSERT_TRUE (validate ());
575574 if (components.port == url_components::omitted) {
576575 return ;
@@ -593,8 +592,8 @@ inline uint32_t url_aggregator::retrieve_base_port() const {
593592 return components.port ;
594593}
595594
596- inline void url_aggregator::clear_base_search () {
597- ada_log (" url_aggregator::clear_base_search " );
595+ inline void url_aggregator::clear_search () {
596+ ada_log (" url_aggregator::clear_search " );
598597 ADA_ASSERT_TRUE (validate ());
599598 if (components.search_start == url_components::omitted) {
600599 return ;
@@ -618,8 +617,8 @@ inline void url_aggregator::clear_base_search() {
618617 ADA_ASSERT_TRUE (validate ());
619618}
620619
621- inline void url_aggregator::clear_base_hash () {
622- ada_log (" url_aggregator::clear_base_hash " );
620+ inline void url_aggregator::clear_hash () {
621+ ada_log (" url_aggregator::clear_hash " );
623622 ADA_ASSERT_TRUE (validate ());
624623 if (components.hash_start == url_components::omitted) {
625624 return ;
@@ -635,8 +634,8 @@ inline void url_aggregator::clear_base_hash() {
635634 ADA_ASSERT_TRUE (validate ());
636635}
637636
638- inline void url_aggregator::clear_base_pathname () {
639- ada_log (" url_aggregator::clear_base_pathname " );
637+ inline void url_aggregator::clear_pathname () {
638+ ada_log (" url_aggregator::clear_pathname " );
640639 ADA_ASSERT_TRUE (validate ());
641640 uint32_t ending_index = uint32_t (buffer.size ());
642641 if (components.search_start != url_components::omitted) {
@@ -660,19 +659,18 @@ inline void url_aggregator::clear_base_pathname() {
660659 if (components.hash_start != url_components::omitted) {
661660 components.hash_start -= difference;
662661 }
663- ada_log (" url_aggregator::clear_base_pathname completed, running checks..." );
662+ ada_log (" url_aggregator::clear_pathname completed, running checks..." );
664663#if ADA_DEVELOPMENT_CHECKS
665664 ADA_ASSERT_EQUAL (get_pathname (), " " ,
666665 " pathname should have been cleared on buffer=" + buffer +
667666 " with " + components.to_string () + " \n " + to_diagram ());
668667#endif
669668 ADA_ASSERT_TRUE (validate ());
670- ada_log (
671- " url_aggregator::clear_base_pathname completed, running checks... ok" );
669+ ada_log (" url_aggregator::clear_pathname completed, running checks... ok" );
672670}
673671
674- inline void url_aggregator::clear_base_hostname () {
675- ada_log (" url_aggregator::clear_base_hostname " );
672+ inline void url_aggregator::clear_hostname () {
673+ ada_log (" url_aggregator::clear_hostname " );
676674 ADA_ASSERT_TRUE (validate ());
677675 if (!has_authority ()) {
678676 return ;
@@ -706,13 +704,13 @@ inline void url_aggregator::clear_base_hostname() {
706704 ADA_ASSERT_TRUE (validate ());
707705}
708706
709- inline bool url_aggregator::base_fragment_has_value () const {
710- ada_log (" url_aggregator::base_fragment_has_value " );
707+ inline bool url_aggregator::has_hash () const {
708+ ada_log (" url_aggregator::has_hash " );
711709 return components.hash_start != url_components::omitted;
712710}
713711
714- inline bool url_aggregator::base_search_has_value () const {
715- ada_log (" url_aggregator::base_search_has_value " );
712+ inline bool url_aggregator::has_search () const {
713+ ada_log (" url_aggregator::has_search " );
716714 return components.search_start != url_components::omitted;
717715}
718716
@@ -859,7 +857,7 @@ ada_really_inline size_t url_aggregator::parse_port(
859857 if (r.ec == std::errc () && scheme_default_port () != parsed_port) {
860858 update_base_port (parsed_port);
861859 } else {
862- clear_base_port ();
860+ clear_port ();
863861 }
864862 }
865863 return consumed;
0 commit comments