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

Method get

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

Source from the content-addressed store, hash-verified

8712inline size_t url_search_params::size() const noexcept { return params.size(); }
8713
8714inline std::optional<std::string_view> url_search_params::get(
8715 const std::string_view key) {
8716 auto entry = std::ranges::find_if(
8717 params, [&key](const auto &param) { return param.first == key; });
8718
8719 if (entry == params.end()) {
8720 return std::nullopt;
8721 }
8722
8723 return entry->second;
8724}
8725
8726inline std::vector<std::string> url_search_params::get_all(
8727 const std::string_view key) {

Callers

nothing calls this directly

Calls 1

endMethod · 0.45

Tested by

no test coverage detected