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

Method process_username

src/url_pattern.cpp:277–285  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

275}
276
277tl::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
287tl::expected<std::string, errors> url_pattern_init::process_password(
288 std::string_view value, process_type type) {

Callers

nothing calls this directly

Calls 1

canonicalize_usernameFunction · 0.85

Tested by

no test coverage detected