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.

Append

« XPCOM API Reference

Summary

The Append family of functions appends a value to the end of a string's internal buffer.

 void Append(
   const self_type& aString
 );

Parameters

aString
[in] A nsACString to append to this string.
 void Append(
   const char_type* aData,
   size_type aDataLength = PR_UINT32_MAX
 );

Parameters

aData
[in] A raw character array to append to this string.
aDataLength
[in] The length of aData, measured in storage units. If equal to PR_UINT32_MAX, then aData is assumed to be null-terminated. Otherwise, aData need not be null terminated.
 void Append(
   char_type aChar
 );

Parameters

aChar
[in] A character to append to this string.

Remarks

If insufficient memory is available to perform the assignment, then the string's internal buffer will point to a static empty (zero-length) buffer.

Document Tags and Contributors

 Contributors to this page: Sheppy, Pmash
 Last updated by: Sheppy,