class DOMString

This class implements the basic string we use in the DOM. More...

Full nameDOM::DOMString
Definition#include <dom_string.h>
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Protected Members


Detailed Description

This class implements the basic string we use in the DOM. We do not use QString for 2 reasons: Memory overhead, and the missing explicit sharing of strings we need for the DOM.

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 DOMString that is independent, use copy().

 DOMString ()

default constructor. Gives an empty DOMString

DOMString & operator += (const DOMString &str)

append str to this string

DOMString  operator + (const DOMString &str)

add two DOMString's

const QCharoperator [] (unsigned int i)

[const]

The character at position i of the DOMString. If i > length(), the character returned will be 0.

DOMString  split (unsigned int pos)

Splits the string into two. The original string gets truncated to pos, and the rest is returned.

DOMStringImpl * implementation ()

[const]

Use at own risk!!!

const QCharstringPtr ()

[const]

Needed by kBackpage


Generated by: ssk@tauon.ph.unimelb.EDU.AU on Wed May 23 05:55:52 2001, using kdoc 2.0a35.