Changeset 34964 in webkit for trunk/JavaScriptCore/kjs/JSString.h
- Timestamp:
- Jul 2, 2008, 5:47:00 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/JSString.h
r34921 r34964 43 43 bool getStringPropertySlot(ExecState*, const Identifier& propertyName, PropertySlot&); 44 44 bool getStringPropertySlot(unsigned propertyName, PropertySlot&); 45 46 bool canGetIndex(unsigned i) { return i < static_cast<unsigned>(m_value.size()); } 47 JSValue* getIndex(ExecState* exec, unsigned i) 48 { 49 ASSERT(canGetIndex(i)); 50 return new (exec) JSString(m_value.substr(i, 1)); 51 } 45 52 46 53 private:
Note:
See TracChangeset
for help on using the changeset viewer.