ASString

An AngelScript compatible string

Constructors

this
this(size_t length)

Creates an empty string with specified length

this
this(string str)

Creates an ASString based on a D string

this
this(ASString str)

Creates an ASString based on a D string

Members

Functions

dispose
void dispose()

Disposes this ASString

isEmpty
bool isEmpty()

Gets whether the string is empty

length
size_t length()

Gets the length of the string

opAssign
void opAssign(string str)

Overrides string assignment

opAssign
void opAssign(ASString str)

Overrides string assignment

opBinary
ASString opBinary(ASString rhs)

Returns a new string based on this and an other string

opOpAssign
ASString opOpAssign(ASString rhs)

Allows appending strings

resize
void resize(size_t length)
Undocumented in source. Be warned that the author may not have intended to support it.
substr
ASString substr(uint start, uint count)
Undocumented in source. Be warned that the author may not have intended to support it.
toString
string toString()

Reinterprets this as a D string

Meta