Changeset 27608 in webkit for trunk/JavaScriptCore/kjs/string_object.h
- Timestamp:
- Nov 8, 2007, 12:31:26 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/string_object.h
r27218 r27608 26 26 #include "JSWrapperObject.h" 27 27 #include "internal.h" 28 #include "lookup.h" 28 29 29 30 namespace KJS { … … 81 82 * @internal 82 83 * 83 * Class to implement all methods that are properties of the84 * Classes to implement all methods that are properties of the 84 85 * String.prototype object 85 86 */ 86 class StringProtoFunc : public InternalFunctionImp { 87 public: 88 StringProtoFunc(ExecState *exec, int i, int len, const Identifier&); 87 #define FOR_EACH_CLASS(macro) \ 88 macro(StringProtoFuncToString) \ 89 macro(StringProtoFuncValueOf) \ 90 macro(StringProtoFuncCharAt) \ 91 macro(StringProtoFuncCharCodeAt) \ 92 macro(StringProtoFuncConcat) \ 93 macro(StringProtoFuncIndexOf) \ 94 macro(StringProtoFuncLastIndexOf) \ 95 macro(StringProtoFuncMatch) \ 96 macro(StringProtoFuncReplace) \ 97 macro(StringProtoFuncSearch) \ 98 macro(StringProtoFuncSlice) \ 99 macro(StringProtoFuncSplit) \ 100 macro(StringProtoFuncSubstr) \ 101 macro(StringProtoFuncSubstring) \ 102 macro(StringProtoFuncToLowerCase) \ 103 macro(StringProtoFuncToUpperCase) \ 104 macro(StringProtoFuncToLocaleLowerCase) \ 105 macro(StringProtoFuncToLocaleUpperCase) \ 106 macro(StringProtoFuncLocaleCompare) \ 89 107 90 virtual JSValue *callAsFunction(ExecState *exec, JSObject *thisObj, const List &args); 108 #define FOR_EACH_CLASS_NOT_PURE_ECMA(macro) \ 109 macro(StringProtoFuncBig) \ 110 macro(StringProtoFuncSmall) \ 111 macro(StringProtoFuncBlink) \ 112 macro(StringProtoFuncBold) \ 113 macro(StringProtoFuncFixed) \ 114 macro(StringProtoFuncItalics) \ 115 macro(StringProtoFuncStrike) \ 116 macro(StringProtoFuncSub) \ 117 macro(StringProtoFuncSup) \ 118 macro(StringProtoFuncFontcolor) \ 119 macro(StringProtoFuncFontsize) \ 120 macro(StringProtoFuncAnchor) \ 121 macro(StringProtoFuncLink) \ 91 122 92 enum { ToString, ValueOf, CharAt, CharCodeAt, Concat, IndexOf, LastIndexOf, 93 Match, Replace, Search, Slice, Split, 94 Substr, Substring, FromCharCode, ToLowerCase, ToUpperCase, 95 ToLocaleLowerCase, ToLocaleUpperCase, LocaleCompare 123 FOR_EACH_CLASS(KJS_IMPLEMENT_PROTOTYPE_FUNCTION_WITH_CREATE) 96 124 #ifndef KJS_PURE_ECMA 97 , Big, Small, Blink, Bold, Fixed, Italics, Strike, Sub, Sup, 98 Fontcolor, Fontsize, Anchor, Link 125 FOR_EACH_CLASS_NOT_PURE_ECMA(KJS_IMPLEMENT_PROTOTYPE_FUNCTION_WITH_CREATE) 99 126 #endif 100 }; 101 private: 102 int id; 103 }; 127 128 #undef FOR_EACH_CLASS 129 #undef FOR_EACH_CLASS_NOT_PURE_ECMA 130 104 131 105 132 /**
Note:
See TracChangeset
for help on using the changeset viewer.