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

Method has_valid_domain

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

Source from the content-addressed store, hash-verified

12590}
12591
12592[[nodiscard]] bool url::has_valid_domain() const noexcept {
12593 if (!host.has_value()) {
12594 return false;
12595 }
12596 return checkers::verify_dns_length(host.value());
12597}
12598
12599[[nodiscard]] std::string url::get_origin() const noexcept {
12600 if (is_special()) {

Callers

nothing calls this directly

Calls 3

verify_dns_lengthFunction · 0.85
valueMethod · 0.80
has_valueMethod · 0.45

Tested by

no test coverage detected