| |||||||||
SummaryCreates a new Unicode-encoded JS string and ensures that the resulting string is null-terminated. | |||||||||
SyntaxJSString * JS_NewUCStringCopyZ(JSContext *cx, const jschar *s);
| |||||||||
DescriptionJS_NewUCStringCopyZ allocates space for a new, Unicode-encoded JS string and its underlying storage, and then copies the contents of a character array, s , into the new string. The new JS string is guaranteed to be null-terminated.
If the allocation is successful,
| |||||||||
See Also
|