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

Method Get

test-app/runtime/src/main/cpp/URLSearchParamsImpl.cpp:187–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185 }
186
187 void URLSearchParamsImpl::Get(const v8::FunctionCallbackInfo<v8::Value> &args) {
188 URLSearchParamsImpl *ptr = GetPointer(args.This());
189 auto isolate = args.GetIsolate();
190 if (ptr == nullptr) {
191 args.GetReturnValue().SetUndefined();
192 return;
193 }
194 auto key = args[0].As<v8::String>();
195 auto value = ptr->GetURLSearchParams()->get(ArgConverter::ConvertToString(key));
196 if (value.has_value()) {
197 auto ret = ArgConverter::ConvertToV8String(isolate, std::string(value.value()));
198 args.GetReturnValue().Set(ret);
199 } else {
200 args.GetReturnValue().SetUndefined();
201 }
202 }
203
204 void URLSearchParamsImpl::GetAll(const v8::FunctionCallbackInfo<v8::Value> &args) {
205 URLSearchParamsImpl *ptr = GetPointer(args.This());

Callers 15

PrepareV8RuntimeMethod · 0.45
GetContextMethod · 0.45
PumpTimerLoopCallbackMethod · 0.45
ConvertToJavaLongMethod · 0.45
RequireCallbackImplMethod · 0.45
LoadMethod · 0.45
LoadModuleMethod · 0.45
ResolveModuleCallbackFunction · 0.45

Calls 9

ThisMethod · 0.80
SetUndefinedMethod · 0.80
GetReturnValueMethod · 0.80
GetURLSearchParamsMethod · 0.80
valueMethod · 0.80
getMethod · 0.65
GetIsolateMethod · 0.45
has_valueMethod · 0.45
SetMethod · 0.45

Tested by 4

dispatchMessageMethod · 0.36
consoleLogCallbackMethod · 0.36