MCPcopy Create free account
hub / github.com/NativeScript/android / process_hostname

Method process_hostname

test-app/runtime/src/main/cpp/ada/ada.cpp:15797–15806  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15795}
15796
15797tl::expected<std::string, errors> url_pattern_init::process_hostname(
15798 std::string_view value, process_type type) {
15799 ada_log("process_hostname value=", value, " type=", type);
15800 // If type is "pattern" then return value.
15801 if (type == process_type::pattern) {
15802 return std::string(value);
15803 }
15804 // Return the result of running canonicalize a hostname given value.
15805 return url_pattern_helpers::canonicalize_hostname(value);
15806}
15807
15808tl::expected<std::string, errors> url_pattern_init::process_port(
15809 std::string_view port, std::string_view protocol, process_type type) {

Callers

nothing calls this directly

Calls 1

canonicalize_hostnameFunction · 0.85

Tested by

no test coverage detected