KJS
KJS::Identifier Class Reference
#include <identifier.h>
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] |
| 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] |
| KJS_EXTERNAL_EXPORT DOM::DOMString KJS::Identifier::domString | ( | ) | const |
| 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] |
| const char* KJS::Identifier::ascii | ( | ) | const [inline] |
| static Identifier KJS::Identifier::from | ( | unsigned | y | ) | [inline, static] |
Definition at line 78 of file identifier.h.
| bool KJS::Identifier::isNull | ( | ) | const [inline] |
| 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.
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:
KDE 4.0 API Reference