Default constructor for DOMString. The resulting DOMString object refers to no string at all Difference from C++ implementation: Does not compare with 0
Copy constructor.
Constructor to build a DOMString from an XML character array. (XMLCh is a UTF-16 character by default, can be configured with version labels)
Constructor to build a DOMString from a character array of given length.
Constructor to build a DOMString from an 8 bit character array.
Creates DOMString objects from standard D strings.
Append a null-terminated XMLCh * (Unicode) string to this string.
Append a single Unicode character to this string.
Appends the content of another DOMString to this string.
Appends a D string to this string.
Returns the character at the specified position.
Makes a clone of a the DOMString.
Clears the data of this DOMString.
Compare a DOMString with a null-terminated raw 16-bit character string.
Tells if a DOMString contains the same character data as another.
Compares the content of a D string against a DOMString.
Returns the underlying array (string).
Inserts a string within the existing DOMString at an arbitrary position.
Inserts a string of type XMLCh within the existing DOMString at an arbitrary position
Moves the front pointer to the given position.
Calls std.range.primitives.moveBack on the wrapped range, if possible. Otherwise, throws an UnsupportedRangeMethod exception
Calls std.range.primitives.moveFront on the wrapped range, if possible. Otherwise, throws an UnsupportedRangeMethod exception.
foreach iteration uses opApply, since one delegate call per loop iteration is faster than three virtual function calls. TO DO: Use metaprogramming to make it able to be used in all sorts of context.
Compares the string against various other types or itself using the == and != operators.
Allows the characters to be accessed in an array-like fashion.
Implements easy array appending with operator overloading.
Returns a slice of the string.
Moves the back pointer down by one.
Moves the front pointer up by one.
Dumps the DOMString on the console.
Dumps the DOMString on the console with a line feed at the end.
Returns a handle to the raw buffer in the DOMString.
Preallocate storage in the string to hold a given number of characters. A DOMString will grow its buffer on demand, as characters are added, but it can be more efficient to allocate once in advance, if the size is known.
Returns a sub-string of the DOMString starting at a specified position.
Returns a copy of the string, transcoded to the local code page. The caller owns the (char *) string that is returned, and is responsible for deleting it.
Templated transcoder.
Transcodes the string as a UTF-16 string
Transcodes the string as a UTF-32 string
Transcodes the string as a UTF-8 string
Returns the back element of the range.
Returns true if all content of the string have been consumed.
Returns the front element of the range.
Returns the length of the string.
Returns a copy of the DOMString.
Proper DOMString implementation, with some added range capabilities.