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

Method GetSearch

test-app/runtime/src/main/cpp/URLPatternImpl.cpp:564–577  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

562
563
564void URLPatternImpl::GetSearch(v8::Local<v8::Name> property,
565 const v8::PropertyCallbackInfo<v8::Value> &info) {
566 URLPatternImpl *ptr = GetPointer(info.This());
567 if (ptr == nullptr) {
568 info.GetReturnValue().SetEmptyString();
569 return;
570 }
571 auto isolate = info.GetIsolate();
572
573 auto value = ptr->GetPattern()->get_search();
574
575 info.GetReturnValue().Set(
576 ArgConverter::ConvertToV8String(isolate, value.data(), value.length()));
577}
578
579
580void URLPatternImpl::GetUserName(v8::Local<v8::Name> property,

Callers

nothing calls this directly

Calls 9

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

Tested by

no test coverage detected