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

Method ToString

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

Source from the content-addressed store, hash-verified

475
476
477void URLImpl::ToString(const v8::FunctionCallbackInfo<v8::Value> &info) {
478 URLImpl *ptr = GetPointer(info.This());
479 if (ptr == nullptr) {
480 info.GetReturnValue().SetEmptyString();
481 return;
482 }
483 auto isolate = info.GetIsolate();
484
485
486 auto value = ptr->GetURL()->get_href();
487
488 auto ret = ArgConverter::ConvertToV8String(isolate, value.data(), value.length());
489
490 info.GetReturnValue().Set(ret);
491}
492
493
494void URLImpl::CanParse(const v8::FunctionCallbackInfo<v8::Value> &info) {

Callers 11

CtorMethod · 0.45
SetHashMethod · 0.45
SetHostMethod · 0.45
SetHostNameMethod · 0.45
SetHrefMethod · 0.45
SetPasswordMethod · 0.45
SetPathNameMethod · 0.45
SetPortMethod · 0.45
SetProtocolMethod · 0.45
SetSearchMethod · 0.45
SetUserNameMethod · 0.45

Calls 9

ThisMethod · 0.80
SetEmptyStringMethod · 0.80
GetReturnValueMethod · 0.80
get_hrefMethod · 0.80
GetURLMethod · 0.80
GetIsolateMethod · 0.45
dataMethod · 0.45
lengthMethod · 0.45
SetMethod · 0.45

Tested by

no test coverage detected