Home | History | Annotate | Download | only in runtime

Lines Matching defs:Identifier

32     class Identifier {
35 Identifier() { }
37 Identifier(ExecState* exec, const char* s) : _ustring(add(exec, s)) { } // Only to be used with string literals.
38 Identifier(ExecState* exec, const UChar* s, int length) : _ustring(add(exec, s, length)) { }
39 Identifier(ExecState* exec, UString::Rep* rep) : _ustring(add(exec, rep)) { }
40 Identifier(ExecState* exec, const UString& s) : _ustring(add(exec, s.rep())) { }
42 Identifier(JSGlobalData* globalData, const char* s) : _ustring(add(globalData, s)) { } // Only to be used with string literals.
43 Identifier(JSGlobalData* globalData, const UChar* s, int length) : _ustring(add(globalData, s, length)) { }
44 Identifier(JSGlobalData* globalData, UString::Rep* rep) : _ustring(add(globalData, rep)) { }
45 Identifier(JSGlobalData* globalData, const UString& s) : _ustring(add(globalData, s.rep())) { }
48 Identifier(PlacementNewAdoptType) : _ustring(PlacementNewAdopt) { }
57 static Identifier from(ExecState* exec, unsigned y) { return Identifier(exec, UString::from(y)); }
58 static Identifier from(ExecState* exec, int y) { return Identifier(exec, UString::from(y)); }
59 static Identifier from(ExecState* exec, double y) { return Identifier(exec, UString::from(y)); }
70 friend bool operator==(const Identifier&, const Identifier&);
71 friend bool operator!=(const Identifier&, const Identifier&);
73 friend bool operator==(const Identifier&, const char*);
74 friend bool operator!=(const Identifier&, const char*);
88 static bool equal(const Identifier& a, const Identifier& b) { return a._ustring.rep() == b._ustring.rep(); }
89 static bool equal(const Identifier& a, const char* b) { return equal(a._ustring.rep(), b); }
122 inline bool operator==(const Identifier& a, const Identifier& b)
124 return Identifier::equal(a, b);
127 inline bool operator!=(const Identifier& a, const Identifier& b)
129 return !Identifier::equal(a, b);
132 inline bool operator==(const Identifier& a, const char* b)
134 return Identifier::equal(a, b);
137 inline bool operator!=(const Identifier& a, const char* b)
139 return !Identifier::equal(a, b);