• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KJS

KJS::Identifier

KJS::Identifier Class Reference

#include <identifier.h>

List of all members.


Detailed Description

Represents an Identifier for a Javascript object.

Definition at line 35 of file 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 UString & ustring () const
KJS_EXTERNAL_EXPORT DOM::DOMString domString () const
KJS_EXTERNAL_EXPORT QString qstring () const
const UChar * data () const
int size () const
const char * ascii () const
bool isNull () const
bool isEmpty () const
uint32_t toUInt32 (bool *ok) const
uint32_t toUInt32 (bool *ok, bool tolerateEmptyString) const
uint32_t toStrictUInt32 (bool *ok) const
unsigned toArrayIndex (bool *ok) const
double toDouble () const

Static Public Member Functions

static Identifier from (unsigned y)
static void remove (UString::Rep *)
static bool equal (const UString::Rep *, const char *)
static bool equal (const UString::Rep *, const UChar *, int length)
static bool equal (const UString::Rep *, const UString::Rep *)

Friends

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

Constructor & Destructor Documentation

KJS::Identifier::Identifier (  )  [inline]

Creates an empty identifier.

Definition at line 41 of file identifier.h.

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

Creates an identifier with the name of the string.

 KJS::Identifier method("someJSMethod");

Definition at line 48 of file identifier.h.

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

Definition at line 49 of file identifier.h.

KJS::Identifier::Identifier ( UString::Rep *  rep  )  [inline, explicit]

Definition at line 50 of file identifier.h.

KJS::Identifier::Identifier ( const UString &  s  )  [inline, explicit]

Definition at line 51 of file identifier.h.


Member Function Documentation

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

returns a UString of the identifier

Definition at line 57 of file identifier.h.

KJS_EXTERNAL_EXPORT DOM::DOMString KJS::Identifier::domString (  )  const

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

returns a QString of the identifier

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 67 of file identifier.h.

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

The size of the UChar string returned.

Definition at line 71 of file identifier.h.

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

Char * of the identifier's string.

Definition at line 76 of file identifier.h.

static Identifier KJS::Identifier::from ( unsigned  y  )  [inline, static]

Definition at line 78 of file identifier.h.

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

Returns the identfiers state of being unset.

Definition at line 83 of file identifier.h.

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

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

Definition at line 87 of file identifier.h.

uint32_t KJS::Identifier::toUInt32 ( bool *  ok  )  const [inline]

Definition at line 89 of file identifier.h.

uint32_t KJS::Identifier::toUInt32 ( bool *  ok,
bool  tolerateEmptyString 
) const [inline]

Definition at line 90 of file identifier.h.

uint32_t KJS::Identifier::toStrictUInt32 ( bool *  ok  )  const [inline]

Definition at line 91 of file identifier.h.

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

Definition at line 92 of file identifier.h.

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

Definition at line 93 of file identifier.h.

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

Definition at line 187 of file identifier.cpp.

bool KJS::Identifier::equal ( const UString::Rep *  r,
const char *  s 
) [static]

Definition at line 59 of file identifier.cpp.

bool KJS::Identifier::equal ( const UString::Rep *  r,
const UChar *  s,
int  length 
) [static]

Definition at line 69 of file identifier.cpp.

bool KJS::Identifier::equal ( const UString::Rep *  r,
const UString::Rep *  b 
) [static]

Definition at line 80 of file identifier.cpp.


Friends And Related Function Documentation

friend class PropertyMap [friend]

Definition at line 36 of file identifier.h.

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

Definition at line 119 of file identifier.h.

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

Definition at line 122 of file identifier.h.

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

Definition at line 125 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
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • KIO
  • KIOSlave
  • KJS
  •   WTF
  • KJSEmbed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  •   core
  • Phonon
  •   Backend
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal