Assigns a new value rhs to the string, replacing its current contents.
Parameter rhs can by type of null, BasicString!(...), char|wchar|dchar array/slice/character or integer (integer is transformed to string).
Return referece to this.
BasicString!char str = "123"; assert(!str.empty); str = null; assert(str.empty); str = 'X'; assert(str == "X"); str = "abc"w; assert(str == "abc"); str = -123; assert(str == "-123"); str = BasicString!char("42"); assert(str == "42"); str = BasicString!wchar("abc"); assert(str == "abc");
See Implementation
Assigns a new value rhs to the string, replacing its current contents.
Parameter rhs can by type of null, BasicString!(...), char|wchar|dchar array/slice/character or integer (integer is transformed to string).
Return referece to this.