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

Method process_pathname

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

Source from the content-addressed store, hash-verified

15817}
15818
15819tl::expected<std::string, errors> url_pattern_init::process_pathname(
15820 std::string_view value, std::string_view protocol, process_type type) {
15821 // If type is "pattern" then return pathnameValue.
15822 if (type == process_type::pattern) {
15823 return std::string(value);
15824 }
15825
15826 // If protocolValue is a special scheme or the empty string, then return the
15827 // result of running canonicalize a pathname given pathnameValue.
15828 if (protocol.empty() || scheme::is_special(protocol)) {
15829 return url_pattern_helpers::canonicalize_pathname(value);
15830 }
15831
15832 // Return the result of running canonicalize an opaque pathname given
15833 // pathnameValue.
15834 return url_pattern_helpers::canonicalize_opaque_pathname(value);
15835}
15836
15837tl::expected<std::string, errors> url_pattern_init::process_search(
15838 std::string_view value, process_type type) {

Callers

nothing calls this directly

Calls 4

is_specialFunction · 0.85
canonicalize_pathnameFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected