Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

JS_ConcatStrings

Concatenate two JS strings.

Syntax

JSString *
JS_ConcatStrings(JSContext *cx, JS::HandleString left, JS::HandleString right);
Name Type Description
cx JSContext * The context in which both the strings have been created.
left JS::HandleString First string to concatenate.
right JS::HandleString Second string to concatenate.

Description

JS_ConcatStrings concatenates two JS strings, str1 and str2, and returns the result. The result could be the same as one of the input strings, if the other string is zero length. When the string concatenation fails NULL is returned.

See Also

Document Tags and Contributors

 Contributors to this page: arai, fscholz, nikhilm, evilpie, Dmandelin
 Last updated by: arai,