Functions to get properties of the string. |
| XMLCh | charAt (unsigned int index)const |
| | Returns the character at the specified position. More...
|
| const XMLCh* | rawBuffer ()const |
| | Returns a handle to the raw buffer in the DOMString. More...
|
| char* | transcode ()const |
| | Returns a copy of the string, transcoded to the local code page. More...
|
| DOMString | substringData (unsigned int offset,unsigned int count)const |
| | Returns a sub-string of the DOMString starting at a specified position. More...
|
| unsigned int | length ()const |
| | Returns the length of the DOMString. More...
|
| DOMString | transcode (const char *str) |
| | Creates a DOMString, transcoded from an input 8 bit char * string in the local code page. More...
|
Public Methods |
|
| | DOMString () |
| | Default constructor for DOMString. More...
|
| | DOMString (const DOMString &other) |
| | Copy constructor. More...
|
| | DOMString (const XMLCh *other) |
| | Constructor to build a DOMString from an XML character array. More...
|
| | DOMString (const XMLCh *other,unsigned int length) |
| | Constructor to build a DOMString from a character array of given length. More...
|
| | DOMString (const char *other) |
| | Constructor to build a DOMString from an 8 bit character array. More...
|
| | DOMString (int nullPointerValue) |
| | Construct a null DOMString.
|
| DOMString& | operator= (const DOMString &other) |
| | Assignment operator. More...
|
| DOMString& | operator= (DOM_NullPtr *other) |
|
| | ~DOMString () |
| | Destructor for DOMString.
|
|
| bool | operator== (const DOMString &other)const |
| | Equality operator. More...
|
| bool | operator!= (const DOMString &other)const |
| | Inequality operator. More...
|
| bool | operator== (const DOM_NullPtr *other)const |
| | Equality operator. More...
|
| bool | operator!= (const DOM_NullPtr *other)const |
| | Inequality operator, for null test. More...
|
|
| void | reserve (unsigned int size) |
| | Preallocate storage in the string to hold a given number of characters. More...
|
| void | appendData (const DOMString &other) |
| | Appends the content of another DOMString to this string. More...
|
| void | appendData (XMLCh ch) |
| | Append a single Unicode character to this string. More...
|
| void | appendData (const XMLCh *other) |
| | Append a null-terminated XMLCh * (Unicode) string to this string. More...
|
| DOMString& | operator+= (const DOMString &other) |
| | Appends the content of another DOMString to this string. More...
|
| DOMString& | operator+= (const XMLCh *other) |
| | Appends the content of a c-style string to this string. More...
|
| DOMString& | operator+= (XMLCh ch) |
| | Appends a character to this string. More...
|
| void | deleteData (unsigned int offset,unsigned int count) |
| | Clears the data of this DOMString. More...
|
| void | insertData (unsigned int offset,const DOMString &data) |
| | Inserts a string within the existing DOMString at an arbitrary position. More...
|
|
| DOMString | clone ()const |
| | Makes a clone of a the DOMString. More...
|
|
| void | print ()const |
| | Dumps the DOMString on the console.
|
| void | println ()const |
| | Dumps the DOMString on the console with a line feed at the end.
|
|
| int | compareString (const DOMString &other)const |
| | Compares a DOMString with another. More...
|
| bool | equals (const DOMString &other)const |
| | Tells if a DOMString contains the same character data as another. More...
|
| bool | equals (const XMLCh *other)const |
| | Compare a DOMString with a null-terminated raw 16-bit character string. More...
|
Friends |
| class | DOMStringData |
| class | DOMStringHandle |
| class | DomMemDebug |
Though this class supports most of the common string operations to manipulate strings, it is not meant to be a comphrehensive string class.