| 275 | } |
| 276 | |
| 277 | tl::expected<std::string, errors> url_pattern_init::process_username( |
| 278 | std::string_view value, process_type type) { |
| 279 | // If type is "pattern" then return value. |
| 280 | if (type == process_type::pattern) { |
| 281 | return std::string(value); |
| 282 | } |
| 283 | // Return the result of running canonicalize a username given value. |
| 284 | return url_pattern_helpers::canonicalize_username(value); |
| 285 | } |
| 286 | |
| 287 | tl::expected<std::string, errors> url_pattern_init::process_password( |
| 288 | std::string_view value, process_type type) { |
nothing calls this directly
no test coverage detected