.TH "DOM::DOMString" kde3 "11 Jun 2005" "Version Version 3.4.1" "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
.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
.ti -1c
.RI "\fBDOMString\fP \fBoperator+\fP (const \fBDOMString\fP &str)"
.br
.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
.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
.ti -1c
.RI "\fBDOMString\fP \fBlower\fP () const "
.br
.ti -1c
.RI "\fBDOMString\fP \fBupper\fP () const "
.br
.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 copy(). 
.PP
Definition at line 43 of file dom_string.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "DOM::DOMString::DOMString ()\fC [inline]\fP"
.PP
default constructor. 
.PP
Gives an empty \fBDOMString\fP 
.PP
Definition at line 51 of file dom_string.h.
.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 
.PP
Definition at line 84 of file dom_string.cpp.
.PP
References copy(), and impl.
.SS "\fBDOMString\fP DOMString::operator+ (const \fBDOMString\fP & str)"
.PP
add two DOMString's 
.PP
Definition at line 105 of file dom_string.cpp.
.PP
References copy().
.SS "const \fBQChar\fP & DOMString::operator[] (unsigned int i) const"
.PP
The character at position i of the \fBDOMString\fP. 
.PP
If i >= length(), the character returned will be 0. 
.PP
Definition at line 130 of file dom_string.cpp.
.SS "\fBDOMString\fP DOMString::split (unsigned int pos)"
.PP
Splits the string into two. 
.PP
The original string gets truncated to pos, and the rest is returned. 
.PP
Definition at line 167 of file dom_string.cpp.
.PP
References DOMString().
.SS "\fBDOMString\fP DOMString::lower () const"
.PP
Returns a lowercase version of the string. 
.PP
Definition at line 173 of file dom_string.cpp.
.PP
References DOMString().
.SS "\fBDOMString\fP DOMString::upper () const"
.PP
Returns an uppercase version of the string. 
.PP
Definition at line 179 of file dom_string.cpp.
.PP
References DOMString().

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