KJS::Identifier

Search for usage in LXR

#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 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 *)
 

Detailed Description

Represents an Identifier for a Javascript object.

Definition at line 36 of file identifier.h.

Constructor & Destructor Documentation

◆ Identifier() [1/2]

KJS::Identifier::Identifier ( )
inline

Creates an empty identifier.

Definition at line 43 of file identifier.h.

◆ Identifier() [2/2]

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

Creates an identifier with the name of the string.

KJS::Identifier method("someJSMethod");

Definition at line 50 of file identifier.h.

Member Function Documentation

◆ ascii()

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

Char * of the identifier's string.

Definition at line 86 of file identifier.h.

◆ data()

const UChar* KJS::Identifier::data ( ) const
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()

bool KJS::Identifier::isEmpty ( ) const
inline

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

Definition at line 106 of file identifier.h.

◆ isNull()

bool KJS::Identifier::isNull ( ) const
inline

Returns the identfiers state of being unset.

Definition at line 99 of file identifier.h.

◆ qstring()

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

returns a QString of the identifier

◆ size()

int KJS::Identifier::size ( ) const
inline

The size of the UChar string returned.

Definition at line 78 of file identifier.h.

◆ ustring()

const UString& KJS::Identifier::ustring ( ) const
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:
Represents an Identifier for a Javascript object.
Definition: identifier.h:36
This file is part of the KDE documentation.
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.