Home | History | Annotate | Download | only in runtime

Lines Matching refs:_ustring

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) { }
50 const UString& ustring() const { return _ustring; }
52 const UChar* data() const { return _ustring.data(); }
53 int size() const { return _ustring.size(); }
55 const char* ascii() const { return _ustring.ascii(); }
61 bool isNull() const { return _ustring.isNull(); }
62 bool isEmpty() const { return _ustring.isEmpty(); }
64 uint32_t toUInt32(bool* ok) const { return _ustring.toUInt32(ok); }
65 uint32_t toUInt32(bool* ok, bool tolerateEmptyString) const { return _ustring.toUInt32(ok, tolerateEmptyString); };
66 uint32_t toStrictUInt32(bool* ok) const { return _ustring.toStrictUInt32(ok); }
67 unsigned toArrayIndex(bool* ok) const { return _ustring.toArrayIndex(ok); }
68 double toDouble() const { return _ustring.toDouble(); }
86 UString _ustring;
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); }