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.

operator=

« XPCOM API Reference

Summary

This operator is a shortcut for the inherited nsACString::Assign family of functions.

 self_type& operator=(
   const self_type& aString
 );

Parameters

aString
[in] A nsEmbedCString to append to this string.

Return Values

This operator returns a reference back to the object being modified to allow operator chaining.

 self_type& operator=(
   const abstract_string_type& aString
 );

Parameters

aString
[in] A nsACString to append to this string.

Return Values

This operator returns a reference back to the object being modified to allow operator chaining.

 self_type& operator=(
   const char_type* aData
 );

Parameters

aData
[in] A raw character array to append to this string.

Return Values

This operator returns a reference back to the object being modified to allow operator chaining.

 self_type& operator=(
   char_type aChar
 );

Parameters

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

Return Values

This operator returns a reference back to the object being modified to allow operator chaining.

See Also

nsACString::Assign

Document Tags and Contributors

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