Text

Class representing a text (aka Parsed Character Data) section

Constructors

this
this(string content)

Construct a text (aka PCData) section

Members

Functions

opCmp
int opCmp(Object o)

Compares two text sections

opEquals
bool opEquals(Object o)

Compares two text sections for equality

toHash
size_t toHash()

Returns the hash of a text section

toString
string toString()

Returns a string representation of this Text section

Properties

isEmptyXML
bool isEmptyXML [@property getter]

Returns true if the content is the empty string

Inherited Members

From Item

opEquals
bool opEquals(Object o)

Compares with another Item of same type for equality

opCmp
int opCmp(Object o)

Compares with another Item of same type

toHash
size_t toHash()

Returns the hash of this item

toString
string toString()

Returns a string representation of this item

pretty
string[] pretty(uint indent)

Returns an indented string representation of this item

isEmptyXML
bool isEmptyXML [@property getter]

Returns true if the item represents empty XML text

Meta