MCPcopy Create free account
hub / github.com/Tracktion/choc / stringToV8

Method stringToV8

choc/javascript/choc_javascript_V8.h:451–454  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

449 }
450
451 v8::Local<v8::String> stringToV8 (std::string_view s, v8::NewStringType type = v8::NewStringType::kNormal)
452 {
453 return v8::String::NewFromUtf8 (isolate, s.data(), type, static_cast<int> (s.length())).ToLocalChecked();
454 }
455
456 std::string v8StringToStd (v8::String& s)
457 {

Callers

nothing calls this directly

Calls 2

dataMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected