22 #ifndef _DOM_DOMString_h_
23 #define _DOM_DOMString_h_
28 #include <tdelibs_export.h>
45 friend class CharacterDataImpl;
46 friend TDEHTML_EXPORT
bool operator==(
const DOMString &a,
const char *b );
79 const TQChar &operator [](
unsigned int i)
const;
81 int find(
const TQChar c,
int start = 0)
const;
84 void truncate(
unsigned int len );
85 void remove(
unsigned int pos,
int len=1);
100 TQChar *unicode()
const;
101 TQString string()
const;
104 bool percentage(
int &_percentage)
const;
108 bool isNull()
const {
return (impl == 0); }
109 bool isEmpty()
const;
115 DOMStringImpl *implementation()
const {
return impl; }
123 return (stream <<
string.
string());
131 TDEHTML_EXPORT
bool operator==(
const DOMString &a,
const DOMString &b );
132 TDEHTML_EXPORT
bool operator==(
const DOMString &a,
const TQString &b );
133 TDEHTML_EXPORT
bool operator==(
const DOMString &a,
const char *b );
134 inline bool operator!=(
const DOMString &a,
const DOMString &b ) {
return !(a==b); }
135 inline bool operator!=(
const DOMString &a,
const TQString &b ) {
return !(a==b); }
136 inline bool operator!=(
const DOMString &a,
const char *b ) {
return !(a==b); }
137 inline bool strcmp(
const DOMString &a,
const DOMString &b ) {
return a != b; }
140 TDEHTML_EXPORT
bool strcasecmp(
const DOMString &a,
const DOMString &b );
141 TDEHTML_EXPORT
bool strcasecmp(
const DOMString& a,
const char* b );
This class implements the basic string we use in the DOM.
DOMString()
default constructor.
kdbgstream & operator<<(const TQValueList< T > &list)
The Document Object Model (DOM) is divided into two parts, the COREDOM core DOM, specifying some core...