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

Method GetSearch

test-app/runtime/src/main/cpp/URLImpl.cpp:419–432  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

417
418
419void URLImpl::GetSearch(v8::Local<v8::String> property,
420 const v8::PropertyCallbackInfo<v8::Value> &info) {
421 URLImpl *ptr = GetPointer(info.This());
422 if (ptr == nullptr) {
423 info.GetReturnValue().SetEmptyString();
424 return;
425 }
426 auto isolate = info.GetIsolate();
427
428 auto value = ptr->GetURL()->get_search();
429
430 info.GetReturnValue().Set(
431 ArgConverter::ConvertToV8String(isolate, value.data(), value.length()));
432}
433
434void URLImpl::SetSearch(v8::Local<v8::String> property,
435 v8::Local<v8::Value> value,

Callers

nothing calls this directly

Calls 9

ThisMethod · 0.80
SetEmptyStringMethod · 0.80
GetReturnValueMethod · 0.80
GetURLMethod · 0.80
get_searchMethod · 0.60
GetIsolateMethod · 0.45
SetMethod · 0.45
dataMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected