| Functions to get properties of the string. | |
| XMLCh | charAt (unsigned int index) const | 
| const XMLCh * | rawBuffer () const | 
| char * | transcode () const | 
| DOMString | substringData (unsigned int offset, unsigned int count) const | 
| unsigned int | length () const | 
| DOMString | transcode (const char *str) | 
| Public Methods | |
| Constructors and assignment operator | |
| DOMString () | |
| DOMString (const DOMString &other) | |
| DOMString (const XMLCh *other) | |
| DOMString (const XMLCh *other, unsigned int length) | |
| DOMString (const char *other) | |
| DOMString (int nullPointerValue) | |
| DOMString & | operator= (const DOMString &other) | 
| DOMString & | operator= (DOM_NullPtr *other) | 
| Destructor. | |
| ~DOMString () | |
| Equality and Inequality operators. | |
| bool | operator== (const DOMString &other) const | 
| bool | operator!= (const DOMString &other) const | 
| bool | operator== (const DOM_NullPtr *other) const | 
| bool | operator!= (const DOM_NullPtr *other) const | 
| Functions to change the string. | |
| void | reserve (unsigned int size) | 
| void | appendData (const DOMString &other) | 
| void | appendData (XMLCh ch) | 
| void | appendData (const XMLCh *other) | 
| DOMString & | operator+= (const DOMString &other) | 
| DOMString & | operator+= (const XMLCh *other) | 
| DOMString & | operator+= (XMLCh ch) | 
| void | deleteData (unsigned int offset, unsigned int count) | 
| void | insertData (unsigned int offset, const DOMString &data) | 
| Cloning function. | |
| DOMString | clone () const | 
| Print functions. | |
| void | print () const | 
| void | println () const | 
| Functions to compare a string with another. | |
| int | compareString (const DOMString &other) const | 
| bool | equals (const DOMString &other) const | 
| bool | equals (const XMLCh *other) const | 
| Friends | |
| class | DOMStringData | 
| class | DOMStringHandle | 
| class | DomMemDebug | 
DOMString is the generic string class that stores all strings used in the DOM C++ API.
Though this class supports most of the common string operations to manipulate strings, it is not meant to be a comphrehensive string class.
| 
 | 
| Default constructor for DOMString. The resulting DOMString object refers to no string at all; it will compare == 0. | 
| 
 | 
| Copy constructor. 
 
 | 
| 
 | 
| Constructor to build a DOMString from an XML character array. (XMLCh is a 16 bit UNICODE character). 
 
 | 
| 
 | ||||||||||||
| Constructor to build a DOMString from a character array of given length. 
 
 | 
| 
 | 
| Constructor to build a DOMString from an 8 bit character array. The char * string will be transcoded to UNICODE using the default code page on the system where the code is running. 
 
 | 
| 
 | 
| Construct a null DOMString. | 
| 
 | 
| Destructor for DOMString | 
| 
 | 
| Append a null-terminated XMLCh * (Unicode) string to this string. 
 
 | 
| 
 | 
| Append a single Unicode character to this string. 
 
 | 
| 
 | 
| 
Appends the content of another  
 
 | 
| 
 | 
| Returns the character at the specified position. 
 
 
 | 
| 
 | 
| Makes a clone of a the DOMString. 
 
 | 
| 
 | 
| Compares a DOMString with another. This compareString does not match the semantics of the standard C strcmp. All it needs to do is define some less than - equals - greater than ordering of strings. How doesn't matter. 
 
 
 | 
| 
 | ||||||||||||
| 
Clears the data of this  
 
 | 
| 
 | 
| Compare a DOMString with a null-terminated raw 16-bit character string. 
 
 
 | 
| 
 | 
| 
Tells if a  
 
 
 | 
| 
 | ||||||||||||
| 
Inserts a string within the existing  
 
 
 | 
| 
 | 
| Returns the length of the DOMString. 
 
 | 
| 
 | 
| Inequality operator, for null test. 
 
 
 | 
| 
 | 
| Inequality operator. 
 
 
 DOMString::equals()This behavior is modelled after the String operations in Java, and is also similar to operator == on the other DOM_* classes. | 
| 
 | 
| Appends a character to this string. 
 
 | 
| 
 | 
| Appends the content of a c-style string to this string. 
 
 | 
| 
 | 
| 
Appends the content of another  
 
 | 
| 
 | 
| Assignment operator. Make destination DOMString refer to the same underlying string in memory as the source string. 
 
 | 
| 
 | 
| Equality operator. Test for a null DOMString, which is one that does not refer to any string at all; similar to a null object reference variable in Java. 
 
 
 | 
| 
 | 
| Equality operator. 
 
 
 DOMString::equals()This behavior is modelled after the String operations in Java, and is also similar to operator == on the other DOM_* classes. | 
| 
 | 
| 
Dumps the  | 
| 
 | 
| 
Dumps the  | 
| 
 | 
| 
Returns a handle to the raw buffer in the  
 
 | 
| 
 | 
| 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  
 
 
 | 
| 
 | 
| Creates a DOMString, transcoded from an input 8 bit char * string in the local code page. 
 
 
 | 
| 
 | 
| 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. 
 
 | 
 1.3-rc1
1.3-rc1