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,