| 7923 | } |
| 7924 | |
| 7925 | inline void url_aggregator::clear_hash() { |
| 7926 | ada_log("url_aggregator::clear_hash"); |
| 7927 | ADA_ASSERT_TRUE(validate()); |
| 7928 | if (components.hash_start == url_components::omitted) { |
| 7929 | return; |
| 7930 | } |
| 7931 | buffer.resize(components.hash_start); |
| 7932 | components.hash_start = url_components::omitted; |
| 7933 | |
| 7934 | #if ADA_DEVELOPMENT_CHECKS |
| 7935 | ADA_ASSERT_EQUAL(get_hash(), "", |
| 7936 | "hash should have been cleared on buffer=" + buffer + |
| 7937 | " with " + components.to_string() + "\n" + to_diagram()); |
| 7938 | #endif |
| 7939 | ADA_ASSERT_TRUE(validate()); |
| 7940 | } |
| 7941 | |
| 7942 | constexpr void url_aggregator::clear_pathname() { |
| 7943 | ada_log("url_aggregator::clear_pathname"); |
no test coverage detected