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

Method GetUserName

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

Source from the content-addressed store, hash-verified

446
447
448void URLImpl::GetUserName(v8::Local<v8::String> property,
449 const v8::PropertyCallbackInfo<v8::Value> &info) {
450 URLImpl *ptr = GetPointer(info.This());
451 if (ptr == nullptr) {
452 info.GetReturnValue().SetEmptyString();
453 return;
454 }
455 auto isolate = info.GetIsolate();
456
457 auto value = ptr->GetURL()->get_username();
458
459 info.GetReturnValue().Set(
460 ArgConverter::ConvertToV8String(isolate, value.data(), value.length()));
461}
462
463void URLImpl::SetUserName(v8::Local<v8::String> property,
464 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_usernameMethod · 0.60
GetIsolateMethod · 0.45
SetMethod · 0.45
dataMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected