.TH "DOM::DOMString" 3 "28 Jan 2004" "khtml Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
DOM::DOMString \- This class implements the basic string we use in the \fBDOM\fP.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <dom_string.h>\fP
.PP
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBDOMString\fP ()"
.br
.RI "\fIdefault constructor. \fP"
.ti -1c
.RI "\fBDOMString\fP (const  \fBQChar\fP *str, uint len)"
.br
.ti -1c
.RI "\fBDOMString\fP (const  \fBQString\fP &)"
.br
.ti -1c
.RI "\fBDOMString\fP (const  char *str)"
.br
.ti -1c
.RI "\fBDOMString\fP (DOMStringImpl *i)"
.br
.ti -1c
.RI "\fBDOMString\fP (const  \fBDOMString\fP &str)"
.br
.ti -1c
.RI "\fBDOMString\fP & \fBoperator=\fP (const  \fBDOMString\fP &str)"
.br
.ti -1c
.RI "\fBDOMString\fP & \fBoperator+=\fP (const  \fBDOMString\fP &str)"
.br
.RI "\fIappend str to this string \fP"
.ti -1c
.RI "\fBDOMString\fP \fBoperator+\fP (const  \fBDOMString\fP &str)"
.br
.RI "\fIadd two DOMString's \fP"
.ti -1c
.RI "void \fBinsert\fP (\fBDOMString\fP str, uint pos)"
.br
.ti -1c
.RI "const  \fBQChar\fP & \fBoperator[]\fP (unsigned int i) const "
.br
.RI "\fIThe character at position i of the \fBDOMString\fP. \fP"
.ti -1c
.RI "int \fBfind\fP (const  \fBQChar\fP c, int start=0) const "
.br
.ti -1c
.RI "uint \fBlength\fP () const "
.br
.ti -1c
.RI "void \fBtruncate\fP (unsigned int len)"
.br
.ti -1c
.RI "void \fBremove\fP (unsigned int pos, int len=1)"
.br
.ti -1c
.RI "\fBDOMString\fP \fBsplit\fP (unsigned int pos)"
.br
.RI "\fISplits the string into two. \fP"
.ti -1c
.RI "\fBDOMString\fP \fBlower\fP () const "
.br
.RI "\fIReturns a lowercase version of the string. \fP"
.ti -1c
.RI "\fBDOMString\fP \fBupper\fP () const "
.br
.RI "\fIReturns an uppercase version of the string. \fP"
.ti -1c
.RI "\fBQChar\fP * \fBunicode\fP () const "
.br
.ti -1c
.RI "\fBQString\fP \fBstring\fP () const "
.br
.ti -1c
.RI "int \fBtoInt\fP () const "
.br
.ti -1c
.RI "bool \fBpercentage\fP (int &_percentage) const "
.br
.ti -1c
.RI "\fBDOMString\fP \fBcopy\fP () const "
.br
.ti -1c
.RI "bool \fBisNull\fP () const "
.br
.ti -1c
.RI "bool \fBisEmpty\fP () const "
.br
.ti -1c
.RI "DOMStringImpl * \fBimplementation\fP () const "
.br
.in -1c
.SS "Protected Attributes"

.in +1c
.ti -1c
.RI "DOMStringImpl * \fBimpl\fP"
.br
.in -1c
.SS "Friends"

.in +1c
.ti -1c
.RI "class \fBCharacterDataImpl\fP"
.br
.ti -1c
.RI "bool \fBoperator==\fP (const  \fBDOMString\fP &a, const  char *b)"
.br
.in -1c
.SH "Detailed Description"
.PP 
This class implements the basic string we use in the \fBDOM\fP. 

We do not use \fBQString\fP for 2 reasons: Memory overhead, and the missing explicit sharing of strings we need for the \fBDOM\fP.
.PP
All DOMStrings are explicitly shared (they behave like pointers), meaning that modifications to one instance will also modify all others. If you wish to get a \fBDOMString\fP that is independent, use \fBcopy\fP(). 
.PP
Definition at line 41 of file dom_string.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "DOMString::DOMString ()"
.PP
default constructor. Gives an empty \fBDOMString\fP Definition at line 29 of file dom_string.cpp.
.PP
Referenced by lower(), split(), and upper().
.SH "Member Function Documentation"
.PP 
.SS "\fBDOMString\fP & DOMString::operator+= (const \fBDOMString\fP & str)"
.PP
append str to this string Definition at line 89 of file dom_string.cpp.
.PP
References impl.
.SS "\fBDOMString\fP DOMString::operator+ (const \fBDOMString\fP & str)"
.PP
add two DOMString's Definition at line 109 of file dom_string.cpp.
.PP
References copy(), and impl.
.SS "const  \fBQChar\fP & DOMString::operator[] (unsigned int i) const"
.PP
The character at position i of the \fBDOMString\fP. If i >= length(), the character returned will be 0. Definition at line 134 of file dom_string.cpp.
.SS "\fBDOMString\fP DOMString::split (unsigned int pos)"
.PP
Splits the string into two. The original string gets truncated to pos, and the rest is returned. Definition at line 171 of file dom_string.cpp.
.PP
References DOMString().
.SS "\fBDOMString\fP DOMString::lower () const"
.PP
Returns a lowercase version of the string. Definition at line 177 of file dom_string.cpp.
.PP
References DOMString().
.SS "\fBDOMString\fP DOMString::upper () const"
.PP
Returns an uppercase version of the string. Definition at line 183 of file dom_string.cpp.
.PP
References DOMString().
.PP
Referenced by DOM::Node::isSupported().

.SH "Author"
.PP 
Generated automatically by Doxygen for khtml Library from the source code.
