Function

JSStringCreateWithCharacters

Creates a JavaScript string from a buffer of Unicode characters.

Declaration

JSStringRef JSStringCreateWithCharacters(const JSChar *chars, size_t numChars);

Parameters

chars

The buffer of Unicode characters to copy into the new JSString.

numChars

The number of characters to copy from the buffer pointed to by chars.

Return Value

A JSString containing chars. Ownership follows the Create Rule.