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

Function is_special

test-app/runtime/src/main/cpp/ada/ada.h:6101–6108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6099 ****/
6100
6101ada_really_inline constexpr bool is_special(std::string_view scheme) {
6102 if (scheme.empty()) {
6103 return false;
6104 }
6105 int hash_value = (2 * scheme.size() + (unsigned)(scheme[0])) & 7;
6106 const std::string_view target = details::is_special_list[hash_value];
6107 return (target[0] == scheme[0]) && (target.substr(1) == scheme.substr(1));
6108}
6109constexpr uint16_t get_special_port(std::string_view scheme) noexcept {
6110 if (scheme.empty()) {
6111 return 0;

Callers 14

parse_url_pattern_implFunction · 0.85
set_schemeMethod · 0.85
parse_portMethod · 0.85
parse_schemeMethod · 0.85
parse_hostMethod · 0.85
parse_pathMethod · 0.85
get_originMethod · 0.85
get_protocolMethod · 0.85
set_host_or_hostnameMethod · 0.85
set_searchMethod · 0.85

Calls 2

emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected