Changeset 34921 in webkit for trunk/JavaScriptCore/kjs/JSString.h
- Timestamp:
- Jul 1, 2008, 10:32:44 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/JSString.h
r34893 r34921 26 26 27 27 #include "CommonIdentifiers.h" 28 #include "JS Value.h"28 #include "JSCell.h" 29 29 #include "PropertySlot.h" 30 30 #include "identifier.h" … … 69 69 }; 70 70 71 JSString* jsString(ExecState*, const UString&); // returns empty string if passed null string 72 JSString* jsString(ExecState*, const char* = ""); // returns empty string if passed 0 73 74 // Should be used for strings that are owned by an object that will 75 // likely outlive the JSValue this makes, such as the parse tree or a 76 // DOM object that contains a UString 77 JSString* jsOwnedString(ExecState*, const UString&); 78 71 79 ALWAYS_INLINE bool JSString::getStringPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot) 72 80 { … … 96 104 } 97 105 98 } // namespace 106 // --- JSValue inlines ---------------------------- 107 108 inline JSString* JSValue::toThisJSString(ExecState* exec) 109 { 110 return JSImmediate::isImmediate(this) ? jsString(exec, JSImmediate::toString(this)) : asCell()->toThisJSString(exec); 111 } 112 113 } // namespace KJS 99 114 100 115 #endif // JSString_h
Note:
See TracChangeset
for help on using the changeset viewer.