Changeset 11472 in webkit for trunk/JavaScriptCore/kjs/identifier.h
- Timestamp:
- Dec 6, 2005, 1:21:15 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/identifier.h
r10563 r11472 35 35 Identifier(const char *s) : _ustring(add(s)) { } 36 36 Identifier(const UChar *s, int length) : _ustring(add(s, length)) { } 37 explicit Identifier(const UString &s) : _ustring(add(s.rep)) { } 37 explicit Identifier(UString::Rep *rep) : _ustring(add(rep)) { } 38 explicit Identifier(const UString &s) : _ustring(add(s.rep())) { } 38 39 39 40 const UString &ustring() const { return _ustring; } … … 73 74 74 75 static bool equal(const Identifier &a, const Identifier &b) 75 { return a._ustring.rep == b._ustring.rep; }76 { return a._ustring.rep() == b._ustring.rep(); } 76 77 static bool equal(const Identifier &a, const char *b) 77 { return equal(a._ustring.rep , b); }78 { return equal(a._ustring.rep(), b); } 78 79 79 80 static UString::Rep *add(const char *);
Note:
See TracChangeset
for help on using the changeset viewer.