KJS
KJS::UString::Rep Struct Reference
#include <ustring.h>
Detailed Description
Definition at line 144 of file ustring.h.
Public Member Functions | |
| void | destroy () |
| UChar * | data () const |
| int | size () const |
| unsigned | hash () const |
| void | ref () |
| void | deref () |
Static Public Member Functions | |
| static Rep & | create (UChar *d, int length) |
| static Rep & | createCopying (const UChar *d, int length) |
| static Rep & | create (Rep *base, int offset, int length) |
| static Rep & | create (const RefPtr< Rep > &base, int offset, int length) |
| static unsigned | computeHash (const UChar *, int length) |
| static unsigned | computeHash (const char *s, int length) |
| static unsigned | computeHash (const char *) |
Public Attributes | |
| int | offset |
| int | len |
| int | rc |
| unsigned | _hash |
| bool | isIdentifier |
| UString::Rep * | baseString |
| UChar * | buf |
| int | usedCapacity |
| int | capacity |
| int | usedPreCapacity |
| int | preCapacity |
Static Public Attributes | |
| static Rep | null = { 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0 } |
| static Rep | empty = { 0, 0, 1, 0, 0, 0, reinterpret_cast<UChar*>(&almostUChar), 0, 0, 0, 0 } |
Member Function Documentation
| UString::Rep & KJS::UString::Rep::create | ( | UChar * | d, | |
| int | length | |||
| ) | [static] |
Definition at line 176 of file ustring.cpp.
| UString::Rep & KJS::UString::Rep::createCopying | ( | const UChar * | d, | |
| int | length | |||
| ) | [static] |
Definition at line 167 of file ustring.cpp.
| UString::Rep & KJS::UString::Rep::create | ( | UString::Rep * | base, | |
| int | offset, | |||
| int | length | |||
| ) | [static] |
Definition at line 195 of file ustring.cpp.
| void KJS::UString::Rep::destroy | ( | ) |
Definition at line 224 of file ustring.cpp.
| unsigned KJS::UString::Rep::computeHash | ( | const UChar * | s, | |
| int | length | |||
| ) | [static] |
Definition at line 242 of file ustring.cpp.
| unsigned KJS::UString::Rep::computeHash | ( | const char * | s, | |
| int | length | |||
| ) | [static] |
Definition at line 285 of file ustring.cpp.
| unsigned KJS::UString::Rep::computeHash | ( | const char * | s | ) | [static] |
Definition at line 330 of file ustring.cpp.
Member Data Documentation
unsigned KJS::UString::Rep::_hash [mutable] |
UString::Rep KJS::UString::Rep::null = { 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0 } [static] |
UString::Rep KJS::UString::Rep::empty = { 0, 0, 1, 0, 0, 0, reinterpret_cast<UChar*>(&almostUChar), 0, 0, 0, 0 } [static] |
The documentation for this struct was generated from the following files:
KDE 4.0 API Reference