• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kjs
 

kjs

  • KJS
  • Identifier
Public Member Functions | Static Public Member Functions | Friends | List of all members
KJS::Identifier Class Reference

#include <identifier.h>

Public Member Functions

 Identifier ()
 Identifier (const char *s)
 Identifier (const UChar *s, int length)
 Identifier (const UString &s)
const UString & ustring () const
DOM::DOMString string () const
TQString qstring () const
const UChar * data () const
int size () const
const char * ascii () const
bool isNull () const
bool isEmpty () const
unsigned long toULong (bool *ok) const
unsigned toStrictUInt32 (bool *ok) const
unsigned toArrayIndex (bool *ok) const
double toDouble () const

Static Public Member Functions

static Identifier from (unsigned y)
static const Identifier & null ()
static void remove (UString::Rep *)

Friends

class PropertyMap
bool operator== (const Identifier &a, const Identifier &b)
bool operator!= (const Identifier &a, const Identifier &b)
bool operator== (const Identifier &a, const char *b)

Detailed Description

Represents an Identifier for a Javascript object.

Definition at line 32 of file identifier.h.

Constructor & Destructor Documentation

◆ Identifier() [1/4]

KJS::Identifier::Identifier ( )
inline

Creates an empty identifier.

Definition at line 38 of file identifier.h.

◆ Identifier() [2/4]

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

Creates an identifier with the name of the string.

KJS::Identifier method("someJSMethod");
KJS::Identifier
Represents an Identifier for a Javascript object.
Definition identifier.h:32

Definition at line 45 of file identifier.h.

◆ Identifier() [3/4]

KJS::Identifier::Identifier ( const UChar * s,
int length )
inline

Definition at line 46 of file identifier.h.

◆ Identifier() [4/4]

KJS::Identifier::Identifier ( const UString & s)
inlineexplicit

Definition at line 47 of file identifier.h.

Member Function Documentation

◆ ascii()

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

Char * of the identifier's string.

Definition at line 71 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 62 of file identifier.h.

◆ from()

Identifier KJS::Identifier::from ( unsigned y)
inlinestatic

Definition at line 73 of file identifier.h.

◆ isEmpty()

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

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

Definition at line 82 of file identifier.h.

◆ isNull()

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

Returns the identfiers state of being unset.

Definition at line 78 of file identifier.h.

◆ null()

const Identifier & KJS::Identifier::null ( )
static

Creates an empty Identifier.

Definition at line 302 of file identifier.cpp.

◆ qstring()

TQString KJS::Identifier::qstring ( ) const

returns a TQString of the identifier

◆ remove()

void KJS::Identifier::remove ( UString::Rep * r)
static

Definition at line 238 of file identifier.cpp.

◆ size()

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

The size of the UChar string returned.

Definition at line 66 of file identifier.h.

◆ toArrayIndex()

unsigned KJS::Identifier::toArrayIndex ( bool * ok) const
inline

Definition at line 86 of file identifier.h.

◆ toDouble()

double KJS::Identifier::toDouble ( ) const
inline

Definition at line 88 of file identifier.h.

◆ toStrictUInt32()

unsigned KJS::Identifier::toStrictUInt32 ( bool * ok) const
inline

Definition at line 85 of file identifier.h.

◆ toULong()

unsigned long KJS::Identifier::toULong ( bool * ok) const
inline

Definition at line 84 of file identifier.h.

◆ ustring()

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

returns a UString of the identifier

Definition at line 52 of file identifier.h.

Friends And Related Symbol Documentation

◆ operator!=

bool operator!= ( const Identifier & a,
const Identifier & b )
friend

Definition at line 134 of file identifier.h.

◆ operator== [1/2]

bool operator== ( const Identifier & a,
const char * b )
friend

Definition at line 137 of file identifier.h.

◆ operator== [2/2]

bool operator== ( const Identifier & a,
const Identifier & b )
friend

Definition at line 131 of file identifier.h.

◆ PropertyMap

friend class PropertyMap
friend

Definition at line 33 of file identifier.h.


The documentation for this class was generated from the following files:
  • identifier.h
  • identifier.cpp

kjs

Skip menu "kjs"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

kjs

Skip menu "kjs"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for kjs by doxygen 1.15.0
This website is maintained by Timothy Pearson.