| 7718 | } |
| 7719 | |
| 7720 | constexpr void url_aggregator::clear_password() { |
| 7721 | ada_log("url_aggregator::clear_password ", to_string()); |
| 7722 | ADA_ASSERT_TRUE(validate()); |
| 7723 | if (!has_password()) { |
| 7724 | return; |
| 7725 | } |
| 7726 | |
| 7727 | uint32_t diff = components.host_start - components.username_end; |
| 7728 | buffer.erase(components.username_end, diff); |
| 7729 | components.host_start -= diff; |
| 7730 | components.host_end -= diff; |
| 7731 | components.pathname_start -= diff; |
| 7732 | if (components.search_start != url_components::omitted) { |
| 7733 | components.search_start -= diff; |
| 7734 | } |
| 7735 | if (components.hash_start != url_components::omitted) { |
| 7736 | components.hash_start -= diff; |
| 7737 | } |
| 7738 | } |
| 7739 | |
| 7740 | inline void url_aggregator::update_base_password(const std::string_view input) { |
| 7741 | ada_log("url_aggregator::update_base_password ", input); |