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

Method GetUserName

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

Source from the content-addressed store, hash-verified

578
579
580void URLPatternImpl::GetUserName(v8::Local<v8::Name> property,
581 const v8::PropertyCallbackInfo<v8::Value> &info) {
582 URLPatternImpl *ptr = GetPointer(info.This());
583 if (ptr == nullptr) {
584 info.GetReturnValue().SetEmptyString();
585 return;
586 }
587 auto isolate = info.GetIsolate();
588
589 auto value = ptr->GetPattern()->get_username();
590
591 info.GetReturnValue().Set(
592 ArgConverter::ConvertToV8String(isolate, value.data(), value.length()));
593}
594
595void URLPatternImpl::GetHasRegexpGroups(v8::Local<v8::Name> property,
596 const v8::PropertyCallbackInfo<v8::Value> &info) {

Callers

nothing calls this directly

Calls 9

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

Tested by

no test coverage detected