The nsEmbedString concrete class provides a way to construct a nsAString object that allocates null-terminated storage.
#include "nsEmbedString.h"
// Or: #include "nsStringGlue.h" if inside Gecko
class nsEmbedStringĀ : public nsAString { ... };
nsEmbedStringgetoperator=nsAString::Assign family of functions.The methods defined on nsEmbedString are implemented as inline wrappers around the XPCOM string functions, prefixed with NS_String. See, for example, NS_StringContainerInit.