#include <identifier.h>

Public Member Functions

 Identifier ()
 Identifier (const char *s)
 Identifier (const UChar *s, int length)
 Identifier (UString::Rep *rep)
 Identifier (const UString &s)
const char * ascii () const
const UChardata () 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 UStringustring () 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 *)


bool operator!= (const Identifier &, const Identifier &)
bool operator== (const Identifier &, const Identifier &)
bool operator== (const Identifier &, const char *)

Detailed Description

Represents an Identifier for a Javascript object.

Definition at line 36 of file identifier.h.

Constructor & Destructor Documentation

KJS::Identifier::Identifier ( )

Creates an empty identifier.

Definition at line 43 of file identifier.h.

KJS::Identifier::Identifier ( const char *  s)

Creates an identifier with the name of the string.

KJS::Identifier method("someJSMethod");

Definition at line 50 of file identifier.h.

Member Function Documentation

const char* KJS::Identifier::ascii ( ) const

Char * of the identifier's string.

Definition at line 86 of file identifier.h.

const UChar* KJS::Identifier::data ( ) const

returns a UChar pointer to the string of the identifier with a size defined by size().

Definition at line 71 of file identifier.h.

bool KJS::Identifier::isEmpty ( ) const

Returns that the identifiers string is set, but is empty.

Definition at line 106 of file identifier.h.

bool KJS::Identifier::isNull ( ) const

Returns the identfiers state of being unset.

Definition at line 99 of file identifier.h.

KJS_EXTERNAL_EXPORT QString KJS::Identifier::qstring ( ) const

returns a QString of the identifier

int KJS::Identifier::size ( ) const

The size of the UChar string returned.

Definition at line 78 of file identifier.h.

const UString& KJS::Identifier::ustring ( ) const

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:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jul 13 2020 23:00:01 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.