KJS::Identifier
#include <identifier.h>
Public Member Functions | |
Identifier () | |
Identifier (const char *s) | |
Identifier (const UChar *s, int length) | |
Identifier (const UString &s) | |
Identifier (UString::Rep *rep) | |
const char * | ascii () const |
const UChar * | data () const |
KJS_EXTERNAL_EXPORT DOM::DOMString | domString () const |
bool | isEmpty () const |
bool | isNull () const |
KJS_EXTERNAL_EXPORT QString | qstring () const |
int | size () const |
unsigned | toArrayIndex (bool *ok) const |
double | toDouble () const |
uint32_t | toStrictUInt32 (bool *ok) const |
const UString & | ustring () const |
Static Public Member Functions | |
static bool | equal (const UString::Rep *, const char *) |
static bool | equal (const UString::Rep *, const UChar *, int length) |
static Identifier | from (unsigned y) |
static void | remove (UString::Rep *) |
Detailed Description
Represents an Identifier for a Javascript object.
Definition at line 36 of file identifier.h.
Constructor & Destructor Documentation
◆ Identifier() [1/2]
|
inline |
Creates an empty identifier.
Definition at line 43 of file identifier.h.
◆ Identifier() [2/2]
|
inline |
Creates an identifier with the name of the string.
Definition at line 50 of file identifier.h.
Member Function Documentation
◆ ascii()
|
inline |
Char * of the identifier's string.
Definition at line 86 of file identifier.h.
◆ data()
|
inline |
returns a UChar pointer to the string of the identifier with a size defined by size().
Definition at line 71 of file identifier.h.
◆ isEmpty()
|
inline |
Returns that the identifiers string is set, but is empty.
Definition at line 106 of file identifier.h.
◆ isNull()
|
inline |
Returns the identfiers state of being unset.
Definition at line 99 of file identifier.h.
◆ qstring()
◆ size()
|
inline |
The size of the UChar string returned.
Definition at line 78 of file identifier.h.
◆ ustring()
|
inline |
returns a UString of the identifier
Definition at line 58 of file identifier.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2023 The KDE developers.
Generated on Fri Dec 8 2023 03:57:58 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.