MCPcopy Create free account
hub / github.com/buke/quickjs-go / JS_ToCString

Function JS_ToCString

deps/quickjs/quickjs.h:884–887  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

882 return JS_ToCStringLen2(ctx, plen, val1, 0);
883}
884static inline const char *JS_ToCString(JSContext *ctx, JSValueConst val1)
885{
886 return JS_ToCStringLen2(ctx, NULL, val1, 0);
887}
888// returns a utf-16 version of the string in native endianness; the
889// string is not nul terminated and can contain unmatched surrogates
890// |*plen| is in uint16s, not code points; a surrogate pair such as

Callers 15

js_printf_internalFunction · 0.85
js_loadScriptFunction · 0.85
js_std_loadFileFunction · 0.85
js_std_writeFileFunction · 0.85
js_std_getenvFunction · 0.85
js_std_setenvFunction · 0.85
js_std_unsetenvFunction · 0.85
js_std_openFunction · 0.85
js_std_popenFunction · 0.85
js_std_fdopenFunction · 0.85
js_std_urlGetFunction · 0.85
js_os_openFunction · 0.85

Calls

no outgoing calls

Tested by 9

js_print_262Function · 0.68
js_agent_startFunction · 0.68
js_agent_reportFunction · 0.68
eval_bufFunction · 0.68
cfunctionsFunction · 0.68
runtime_cstring_freeFunction · 0.68
utf16_stringFunction · 0.68
new_errorsFunction · 0.68
slice_string_tocstringFunction · 0.68