| 12797 | } |
| 12798 | |
| 12799 | bool url::set_username(const std::string_view input) { |
| 12800 | if (cannot_have_credentials_or_port()) { |
| 12801 | return false; |
| 12802 | } |
| 12803 | username = ada::unicode::percent_encode( |
| 12804 | input, character_sets::USERINFO_PERCENT_ENCODE); |
| 12805 | return true; |
| 12806 | } |
| 12807 | |
| 12808 | bool url::set_password(const std::string_view input) { |
| 12809 | if (cannot_have_credentials_or_port()) { |
no test coverage detected