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

Method GetHostName

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

Source from the content-addressed store, hash-verified

483}
484
485void URLPatternImpl::GetHostName(v8::Local<v8::Name> property,
486 const v8::PropertyCallbackInfo<v8::Value> &info) {
487 URLPatternImpl *ptr = GetPointer(info.This());
488 if (ptr == nullptr) {
489 info.GetReturnValue().SetEmptyString();
490 return;
491 }
492 auto isolate = info.GetIsolate();
493 auto value = ptr->GetPattern()->get_hostname();
494
495 info.GetReturnValue().Set(
496 ArgConverter::ConvertToV8String(isolate, value.data(), value.length()));
497}
498
499
500void URLPatternImpl::GetPassword(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_hostnameMethod · 0.60
GetIsolateMethod · 0.45
SetMethod · 0.45
dataMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected