| ||||||
SummaryCreates a new, static, Unicode-encoded, JS string of a specified size whose value is automatically shared by all string literals that are identical. | ||||||
SyntaxJSString * JS_InternUCStringN(JSContext *cx, const jschar *s, size_t length); | ||||||
DescriptionJS_InternUCStringN creates a new, Unicode-encoded JS string with a specified value, s , up to length characters in size, if it does not already exist. If the number of characters in s is greater than the number of characters specified in length , the new JS string contains a truncated version of the original string. If the number of characters in s is less than the number of bytes specified in length , the new JS string is padded with nulls to the specified length.
The char array,
If it creates or reuses an interned string,
| ||||||
See Also
|