Visit Mozilla.org

nsACString:operator=

From MDC

« XPCOM API Reference

Contents

[edit] Summary

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

 self_type& operator=(
   const self_type& aString
 );

[edit] Parameters

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

[edit] Return Values

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

 self_type& operator=(
   const char_type* aData
 );

[edit] Parameters

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

[edit] Return Values

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

 self_type& operator=(
   char_type aChar
 );

[edit] Parameters

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

[edit] Return Values

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

[edit] See Also

Assign