MCPcopy Create free account
hub / github.com/ada-url/ada / process_password

Method process_password

src/url_pattern.cpp:287–295  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

285}
286
287tl::expected<std::string, errors> url_pattern_init::process_password(
288 std::string_view value, process_type type) {
289 // If type is "pattern" then return value.
290 if (type == process_type::pattern) {
291 return std::string(value);
292 }
293 // Return the result of running canonicalize a password given value.
294 return url_pattern_helpers::canonicalize_password(value);
295}
296
297tl::expected<std::string, errors> url_pattern_init::process_hostname(
298 std::string_view value, process_type type) {

Callers

nothing calls this directly

Calls 1

canonicalize_passwordFunction · 0.85

Tested by

no test coverage detected