webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Types | Public Member Functions | Static Public Member Functions | Friends | List of all members
JSC::Identifier Class Reference

#include <Identifier.h>

Public Types

enum  EmptyIdentifierFlag { EmptyIdentifier, EmptyIdentifier }
 
enum  EmptyIdentifierFlag { EmptyIdentifier, EmptyIdentifier }
 

Public Member Functions

 Identifier ()
 
 Identifier (EmptyIdentifierFlag)
 
const Stringstring () const
 
UniquedStringImpl * impl () const
 
int length () const
 
CString ascii () const
 
CString utf8 () const
 
bool isNull () const
 
bool isEmpty () const
 
bool isSymbol () const
 
void dump (PrintStream &) const
 
 Identifier ()
 
 Identifier (EmptyIdentifierFlag)
 
const Stringstring () const
 
UniquedStringImpl * impl () const
 
int length () const
 
CString ascii () const
 
CString utf8 () const
 
bool isNull () const
 
bool isEmpty () const
 
bool isSymbol () const
 
void dump (PrintStream &) const
 
template<>
ALWAYS_INLINE bool canUseSingleCharacterString (LChar)
 
template<>
ALWAYS_INLINE bool canUseSingleCharacterString (UChar c)
 

Static Public Member Functions

template<unsigned charactersCount>
static Identifier fromString (VM *, const char(&characters)[charactersCount])
 
template<unsigned charactersCount>
static Identifier fromString (ExecState *, const char(&characters)[charactersCount])
 
static Identifier fromString (VM *, const LChar *, int length)
 
static Identifier fromString (VM *, const UChar *, int length)
 
static Identifier fromString (VM *, const String &)
 
static Identifier fromString (ExecState *, AtomicStringImpl *)
 
static Identifier fromString (ExecState *, const AtomicString &)
 
static Identifier fromString (ExecState *, const String &)
 
static Identifier fromString (ExecState *, const char *)
 
static Identifier fromUid (VM *, UniquedStringImpl *uid)
 
static Identifier fromUid (ExecState *, UniquedStringImpl *uid)
 
static Identifier fromUid (const PrivateName &)
 
static Identifier createLCharFromUChar (VM *vm, const UChar *s, int length)
 
static JS_EXPORT_PRIVATE Identifier from (ExecState *, unsigned y)
 
static JS_EXPORT_PRIVATE Identifier from (ExecState *, int y)
 
static Identifier from (ExecState *, double y)
 
static Identifier from (VM *, unsigned y)
 
static Identifier from (VM *, int y)
 
static Identifier from (VM *, double y)
 
static bool equal (const StringImpl *, const LChar *)
 
static bool equal (const StringImpl *a, const char *b)
 
static bool equal (const StringImpl *, const LChar *, unsigned length)
 
static bool equal (const StringImpl *, const UChar *, unsigned length)
 
static bool equal (const StringImpl *a, const StringImpl *b)
 
static JS_EXPORT_PRIVATE Ref< StringImpl > add (VM *, const char *)
 
static JS_EXPORT_PRIVATE Ref< StringImpl > add (ExecState *, const char *)
 
template<unsigned charactersCount>
static Identifier fromString (VM *, const char(&characters)[charactersCount])
 
template<unsigned charactersCount>
static Identifier fromString (ExecState *, const char(&characters)[charactersCount])
 
static Identifier fromString (VM *, const LChar *, int length)
 
static Identifier fromString (VM *, const UChar *, int length)
 
static Identifier fromString (VM *, const String &)
 
static Identifier fromString (ExecState *, AtomicStringImpl *)
 
static Identifier fromString (ExecState *, const AtomicString &)
 
static Identifier fromString (ExecState *, const String &)
 
static Identifier fromString (ExecState *, const char *)
 
static Identifier fromUid (VM *, UniquedStringImpl *uid)
 
static Identifier fromUid (ExecState *, UniquedStringImpl *uid)
 
static Identifier fromUid (const PrivateName &)
 
static Identifier createLCharFromUChar (VM *vm, const UChar *s, int length)
 
static JS_EXPORT_PRIVATE Identifier from (ExecState *, unsigned y)
 
static JS_EXPORT_PRIVATE Identifier from (ExecState *, int y)
 
static Identifier from (ExecState *, double y)
 
static Identifier from (VM *, unsigned y)
 
static Identifier from (VM *, int y)
 
static Identifier from (VM *, double y)
 
static bool equal (const StringImpl *, const LChar *)
 
static bool equal (const StringImpl *a, const char *b)
 
static bool equal (const StringImpl *, const LChar *, unsigned length)
 
static bool equal (const StringImpl *, const UChar *, unsigned length)
 
static bool equal (const StringImpl *a, const StringImpl *b)
 
static JS_EXPORT_PRIVATE Ref< StringImpl > add (VM *, const char *)
 
static JS_EXPORT_PRIVATE Ref< StringImpl > add (ExecState *, const char *)
 

Friends

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

Member Enumeration Documentation

◆ EmptyIdentifierFlag [1/2]

Enumerator
EmptyIdentifier 
EmptyIdentifier 

◆ EmptyIdentifierFlag [2/2]

Enumerator
EmptyIdentifier 
EmptyIdentifier 

Constructor & Destructor Documentation

◆ Identifier() [1/4]

JSC::Identifier::Identifier ( )
inline

◆ Identifier() [2/4]

JSC::Identifier::Identifier ( EmptyIdentifierFlag  )
inline

◆ Identifier() [3/4]

JSC::Identifier::Identifier ( )
inline

◆ Identifier() [4/4]

JSC::Identifier::Identifier ( EmptyIdentifierFlag  )
inline

Member Function Documentation

◆ add() [1/4]

Ref< StringImpl > JSC::Identifier::add ( VM vm,
const char *  c 
)
static

◆ add() [2/4]

static JS_EXPORT_PRIVATE Ref<StringImpl> JSC::Identifier::add ( VM ,
const char *   
)
static

◆ add() [3/4]

Ref< StringImpl > JSC::Identifier::add ( ExecState exec,
const char *  c 
)
static

◆ add() [4/4]

static JS_EXPORT_PRIVATE Ref<StringImpl> JSC::Identifier::add ( ExecState ,
const char *   
)
static

◆ ascii() [1/2]

CString JSC::Identifier::ascii ( ) const
inline

◆ ascii() [2/2]

CString JSC::Identifier::ascii ( ) const
inline

◆ canUseSingleCharacterString() [1/2]

ALWAYS_INLINE bool JSC::Identifier::canUseSingleCharacterString ( LChar  )

◆ canUseSingleCharacterString() [2/2]

ALWAYS_INLINE bool JSC::Identifier::canUseSingleCharacterString ( UChar  c)

◆ createLCharFromUChar() [1/2]

static Identifier JSC::Identifier::createLCharFromUChar ( VM vm,
const UChar s,
int  length 
)
inlinestatic

◆ createLCharFromUChar() [2/2]

static Identifier JSC::Identifier::createLCharFromUChar ( VM vm,
const UChar s,
int  length 
)
inlinestatic

◆ dump() [1/2]

void JSC::Identifier::dump ( PrintStream &  out) const

◆ dump() [2/2]

void JSC::Identifier::dump ( PrintStream &  ) const

◆ equal() [1/10]

bool JSC::Identifier::equal ( const StringImpl *  r,
const LChar s 
)
inlinestatic

◆ equal() [2/10]

static bool JSC::Identifier::equal ( const StringImpl *  ,
const LChar  
)
static

◆ equal() [3/10]

static bool JSC::Identifier::equal ( const StringImpl *  a,
const char *  b 
)
inlinestatic

◆ equal() [4/10]

static bool JSC::Identifier::equal ( const StringImpl *  a,
const char *  b 
)
inlinestatic

◆ equal() [5/10]

static bool JSC::Identifier::equal ( const StringImpl *  ,
const LChar ,
unsigned  length 
)
static

◆ equal() [6/10]

bool JSC::Identifier::equal ( const StringImpl *  r,
const LChar s,
unsigned  length 
)
inlinestatic

◆ equal() [7/10]

bool JSC::Identifier::equal ( const StringImpl *  r,
const UChar s,
unsigned  length 
)
inlinestatic

◆ equal() [8/10]

static bool JSC::Identifier::equal ( const StringImpl *  ,
const UChar ,
unsigned  length 
)
static

◆ equal() [9/10]

static bool JSC::Identifier::equal ( const StringImpl *  a,
const StringImpl *  b 
)
inlinestatic

◆ equal() [10/10]

static bool JSC::Identifier::equal ( const StringImpl *  a,
const StringImpl *  b 
)
inlinestatic

◆ from() [1/12]

Identifier JSC::Identifier::from ( ExecState exec,
unsigned  y 
)
static

◆ from() [2/12]

static JS_EXPORT_PRIVATE Identifier JSC::Identifier::from ( ExecState ,
unsigned  y 
)
static

◆ from() [3/12]

Identifier JSC::Identifier::from ( ExecState exec,
int  y 
)
static

◆ from() [4/12]

static JS_EXPORT_PRIVATE Identifier JSC::Identifier::from ( ExecState ,
int  y 
)
static

◆ from() [5/12]

Identifier JSC::Identifier::from ( ExecState exec,
double  y 
)
static

◆ from() [6/12]

static Identifier JSC::Identifier::from ( ExecState ,
double  y 
)
static

◆ from() [7/12]

Identifier JSC::Identifier::from ( VM vm,
unsigned  y 
)
static

◆ from() [8/12]

static Identifier JSC::Identifier::from ( VM ,
unsigned  y 
)
static

◆ from() [9/12]

Identifier JSC::Identifier::from ( VM vm,
int  y 
)
static

◆ from() [10/12]

static Identifier JSC::Identifier::from ( VM ,
int  y 
)
static

◆ from() [11/12]

static Identifier JSC::Identifier::from ( VM ,
double  y 
)
static

◆ from() [12/12]

Identifier JSC::Identifier::from ( VM vm,
double  y 
)
static

◆ fromString() [1/18]

template<unsigned charactersCount>
static Identifier JSC::Identifier::fromString ( VM ,
const char(&)  characters[charactersCount] 
)
static

◆ fromString() [2/18]

template<unsigned charactersCount>
Identifier JSC::Identifier::fromString ( VM vm,
const char(&)  characters[charactersCount] 
)
inlinestatic

◆ fromString() [3/18]

template<unsigned charactersCount>
Identifier JSC::Identifier::fromString ( ExecState exec,
const char(&)  characters[charactersCount] 
)
inlinestatic

◆ fromString() [4/18]

template<unsigned charactersCount>
static Identifier JSC::Identifier::fromString ( ExecState ,
const char(&)  characters[charactersCount] 
)
static

◆ fromString() [5/18]

Identifier JSC::Identifier::fromString ( VM vm,
const LChar s,
int  length 
)
inlinestatic

◆ fromString() [6/18]

static Identifier JSC::Identifier::fromString ( VM ,
const LChar ,
int  length 
)
static

◆ fromString() [7/18]

Identifier JSC::Identifier::fromString ( VM vm,
const UChar s,
int  length 
)
inlinestatic

◆ fromString() [8/18]

static Identifier JSC::Identifier::fromString ( VM ,
const UChar ,
int  length 
)
static

◆ fromString() [9/18]

static Identifier JSC::Identifier::fromString ( VM ,
const String  
)
static

◆ fromString() [10/18]

Identifier JSC::Identifier::fromString ( VM vm,
const String string 
)
inlinestatic

◆ fromString() [11/18]

static Identifier JSC::Identifier::fromString ( ExecState ,
AtomicStringImpl *   
)
static

◆ fromString() [12/18]

Identifier JSC::Identifier::fromString ( ExecState exec,
AtomicStringImpl *  atomicString 
)
inlinestatic

◆ fromString() [13/18]

static Identifier JSC::Identifier::fromString ( ExecState ,
const AtomicString &   
)
static

◆ fromString() [14/18]

Identifier JSC::Identifier::fromString ( ExecState exec,
const AtomicString &  atomicString 
)
inlinestatic

◆ fromString() [15/18]

static Identifier JSC::Identifier::fromString ( ExecState ,
const String  
)
static

◆ fromString() [16/18]

Identifier JSC::Identifier::fromString ( ExecState exec,
const String string 
)
inlinestatic

◆ fromString() [17/18]

Identifier JSC::Identifier::fromString ( ExecState exec,
const char *  s 
)
inlinestatic

◆ fromString() [18/18]

static Identifier JSC::Identifier::fromString ( ExecState ,
const char *   
)
static

◆ fromUid() [1/6]

static Identifier JSC::Identifier::fromUid ( VM ,
UniquedStringImpl *  uid 
)
static

◆ fromUid() [2/6]

Identifier JSC::Identifier::fromUid ( VM vm,
UniquedStringImpl *  uid 
)
inlinestatic

◆ fromUid() [3/6]

Identifier JSC::Identifier::fromUid ( ExecState exec,
UniquedStringImpl *  uid 
)
inlinestatic

◆ fromUid() [4/6]

static Identifier JSC::Identifier::fromUid ( ExecState ,
UniquedStringImpl *  uid 
)
static

◆ fromUid() [5/6]

static Identifier JSC::Identifier::fromUid ( const PrivateName )
static

◆ fromUid() [6/6]

Identifier JSC::Identifier::fromUid ( const PrivateName name)
inlinestatic

◆ impl() [1/2]

UniquedStringImpl* JSC::Identifier::impl ( ) const
inline

◆ impl() [2/2]

UniquedStringImpl* JSC::Identifier::impl ( ) const
inline

◆ isEmpty() [1/2]

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

◆ isEmpty() [2/2]

bool JSC::Identifier::isEmpty ( void  ) const
inline

◆ isNull() [1/2]

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

◆ isNull() [2/2]

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

◆ isSymbol() [1/2]

bool JSC::Identifier::isSymbol ( ) const
inline

◆ isSymbol() [2/2]

bool JSC::Identifier::isSymbol ( ) const
inline

◆ length() [1/2]

int JSC::Identifier::length ( ) const
inline

◆ length() [2/2]

int JSC::Identifier::length ( void  ) const
inline

◆ string() [1/2]

const String& JSC::Identifier::string ( ) const
inline

◆ string() [2/2]

const String& JSC::Identifier::string ( ) const
inline

◆ utf8() [1/2]

CString JSC::Identifier::utf8 ( ) const
inline

◆ utf8() [2/2]

CString JSC::Identifier::utf8 ( ) const
inline

Friends And Related Function Documentation

◆ operator!= [1/6]

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

◆ operator!= [2/6]

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

◆ operator!= [3/6]

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

◆ operator!= [4/6]

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

◆ operator!= [5/6]

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

◆ operator!= [6/6]

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

◆ operator== [1/6]

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

◆ operator== [2/6]

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

◆ operator== [3/6]

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

◆ operator== [4/6]

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

◆ operator== [5/6]

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

◆ operator== [6/6]

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

◆ Structure

Structure
friend

The documentation for this class was generated from the following files: