+2005-07-14 Geoffrey Garen <ggaren@apple.com>
+
+ -rolled in patches for http://bugzilla.opendarwin.org/show_bug.cgi?id=3945
+ [PATCH] Safe merges of comments and other trivialities from KDE's kjs
+
+ -patch by Martijn Klingens <klingens@kde.org>
+
+ * kjs/array_instance.h:
+ * kjs/array_object.cpp:
+ * kjs/array_object.h:
+ * kjs/bool_object.cpp:
+ * kjs/bool_object.h:
+ * kjs/collector.cpp:
+ * kjs/collector.h:
+ * kjs/completion.h:
+ * kjs/context.h:
+ * kjs/date_object.cpp:
+ * kjs/date_object.h:
+ * kjs/debugger.cpp:
+ * kjs/debugger.h:
+ * kjs/dtoa.h:
+ * kjs/error_object.cpp:
+ * kjs/error_object.h:
+ * kjs/function.cpp:
+ * kjs/function.h:
+ * kjs/function_object.cpp:
+ * kjs/function_object.h:
+ * kjs/grammar.y:
+ * kjs/identifier.cpp:
+ * kjs/identifier.h:
+ * kjs/internal.cpp:
+ * kjs/internal.h:
+ * kjs/interpreter.cpp:
+ * kjs/interpreter.h:
+ * kjs/interpreter_map.cpp:
+ * kjs/interpreter_map.h:
+ * kjs/lexer.cpp:
+ * kjs/lexer.h:
+ * kjs/list.cpp:
+ * kjs/list.h:
+ * kjs/lookup.cpp:
+ * kjs/lookup.h:
+ * kjs/math_object.cpp:
+ * kjs/math_object.h:
+ * kjs/nodes.cpp:
+ * kjs/nodes.h:
+ * kjs/nodes2string.cpp:
+ * kjs/number_object.cpp:
+ * kjs/number_object.h:
+ * kjs/object.cpp:
+ * kjs/object.h:
+ * kjs/object_object.cpp:
+ * kjs/object_object.h:
+ * kjs/operations.cpp:
+ * kjs/operations.h:
+ * kjs/property_map.cpp:
+ * kjs/property_map.h:
+ * kjs/reference.cpp:
+ * kjs/reference.h:
+ * kjs/reference_list.cpp:
+ * kjs/reference_list.h:
+ * kjs/regexp.cpp:
+ * kjs/regexp.h:
+ * kjs/regexp_object.cpp:
+ * kjs/regexp_object.h:
+ * kjs/scope_chain.cpp:
+ * kjs/scope_chain.h:
+ * kjs/simple_number.h:
+ * kjs/string_object.cpp:
+ * kjs/string_object.h:
+ * kjs/testkjs.cpp:
+ * kjs/types.h:
+ * kjs/ustring.cpp:
+ * kjs/ustring.h:
+ * kjs/value.cpp:
+ * kjs/value.h:
+
2005-07-14 Geoffrey Garen <ggaren@apple.com>
-fixed http://bugzilla.opendarwin.org/show_bug.cgi?id=3970
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * Foundation, Inc., 51 Franklin Steet, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
ValueImp **storage;
};
-}; // namespace KJS
+} // namespace KJS
#endif
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * Foundation, Inc., 51 Franklin Steet, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * Foundation, Inc., 51 Franklin Steet, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
};
-}; // namespace
+} // namespace
#endif
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * Foundation, Inc., 51 Franklin Steet, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * Foundation, Inc., 51 Franklin Steet, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
virtual Value call(ExecState *exec, Object &thisObj, const List &args);
};
-}; // namespace
+} // namespace
#endif
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * Foundation, Inc., 51 Franklin Steet, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * Foundation, Inc., 51 Franklin Steet, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to
- * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
*
*/
* Completion objects are used to convey the return status and value
* from functions.
*
- * See @ref FunctionImp::execute()
+ * See FunctionImp::execute()
*
* @see FunctionImp
*
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to
- * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
*
*/
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * Foundation, Inc., 51 Franklin Steet, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * Foundation, Inc., 51 Franklin Steet, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
double timeClip(double t);
double makeTime(struct tm *t, int milli, bool utc);
-}; // namespace
+} // namespace
#endif
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * Foundation, Inc., 51 Franklin Steet, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * Foundation, Inc., 51 Franklin Steet, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
*
* @param exec The current execution state
* @param sourceId The ID of the source code (corresponds to the
- * sourceId supplied in other functions such as @ref atStatement()
+ * sourceId supplied in other functions such as atStatement()
* @param source The source code that was parsed
* @param errorLine The line number at which parsing encountered an
- * error, or -1 if the source code was valid and parsed succesfully
+ * error, or -1 if the source code was valid and parsed successfully
* @return true if execution should be continue, false if it should
* be aborted
*/
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to
- * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
*
*/
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * Foundation, Inc., 51 Franklin Steet, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * Foundation, Inc., 51 Franklin Steet, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
ObjectImp *proto;
};
-}; // namespace
+} // namespace
#endif
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to
- * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
*
*/
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to
- * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
*
*/
-}; // namespace
+} // namespace
#endif
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * Foundation, Inc., 51 Franklin Steet, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * Foundation, Inc., 51 Franklin Steet, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
* @internal
*
* The initial value of Function.prototype (and thus all objects created
- * with the Function constructor
+ * with the Function constructor)
*/
class FunctionPrototypeImp : public InternalFunctionImp {
public:
virtual Value call(ExecState *exec, Object &thisObj, const List &args);
};
-}; // namespace
+} // namespace
#endif // _FUNCTION_OBJECT_H_
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * Foundation, Inc., 51 Franklin Steet, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to
- * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
*
*/
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to
- * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
*
*/
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to
- * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
*
*/
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to
- * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
*
*/
void printInfo(ExecState *exec, const char *s, const Value &o, int lineno = -1);
#endif
-}; // namespace
+} // namespace
#endif // _INTERNAL_H_
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to
- * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
*
*/
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to
- * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
*
*/
* An execution context contains information about the current state of the
* script - the scope for variable lookup, the value of "this", etc. A new
* execution context is entered whenever global code is executed (e.g. with
- * @ref Interpreter::evaluate()), a function is called (see @ref
+ * Interpreter::evaluate()), a function is called (see
* Object::call()), or the builtin "eval" function is executed.
*
- * Most inheritable functions in the KJS api take a @ref ExecState pointer as
+ * Most inheritable functions in the KJS api take a ExecState pointer as
* their first parameter. This can be used to obtain a handle to the current
* execution context.
*
/**
* Returns the context from which the current context was invoked. For
- * global code this will be a null context (i.e. one for which @ref
- * isNull() returns true). You should check @ref isNull() on the returned
+ * global code this will be a null context (i.e. one for which
+ * isNull() returns true). You should check isNull() on the returned
* value before calling any of it's methods.
*
* @return The calling execution context
/**
* Call this to enable a compatibility mode with another browser.
* (by default konqueror is in "native mode").
- * Currently, in KJS, this only changes the behaviour of Date::getYear()
+ * Currently, in KJS, this only changes the behavior of Date::getYear()
* which returns the full year under IE.
*/
void setCompatMode(CompatMode mode);
ProtectedValue _exception;
};
-}; // namespace
+} // namespace
#endif // _KJS_INTERPRETER_H_
}
-}; // namespace
+} // namespace
static int InterpreterMap::_keyCount;
};
-}; // namespace
+} // namespace
#endif // _KJS_INTERPRETER_MAP_H_
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to
- * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
*
*/
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to
- * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
*
*/
LexerPrivate *priv;
};
-}; // namespace
+} // namespace
#endif
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to
- * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
*
*/
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to
- * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
*
*/
*/
int size() const { return _impBase->size; }
/**
- * @return A @ref KJS::ListIterator pointing to the first element.
+ * @return A KJS::ListIterator pointing to the first element.
*/
ListIterator begin() const;
/**
- * @return A @ref KJS::ListIterator pointing to the last element.
+ * @return A KJS::ListIterator pointing to the last element.
*/
ListIterator end() const;
/**
* Retrieve an element at an indexed position. If you want to iterate
- * trough the whole list using @ref KJS::ListIterator will be faster.
+ * trough the whole list using KJS::ListIterator will be faster.
*
* @param i List index.
- * @return Return the element at position i. @ref KJS::Undefined if the
+ * @return Return the element at position i. KJS::Undefined if the
* index is out of range.
*/
Value at(int i) const { return Value(impAt(i)); }
/**
- * Equivalent to @ref at.
+ * Equivalent to at.
*/
Value operator[](int i) const { return Value(impAt(i)); }
/**
* Returns a pointer to a static instance of an empty list. Useful if a
- * function has a @ref KJS::List parameter.
+ * function has a KJS::List parameter.
*/
static const List &empty();
};
/**
- * @short Iterator for @ref KJS::List objects.
+ * @short Iterator for KJS::List objects.
*/
class ListIterator {
public:
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * Foundation, Inc., 51 Franklin Steet, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * Foundation, Inc., 51 Franklin Steet, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
* - cleanup old stuff (e.g. hasProperty)
* - compile, test, commit ;)
*/
-}; // namespace
+} // namespace
#endif
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * Foundation, Inc., 51 Franklin Steet, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * Foundation, Inc., 51 Franklin Steet, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
int id;
};
-}; // namespace
+} // namespace
#endif
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to
- * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
*
*/
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to
- * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
*
*/
ProgramNode(SourceElementsNode *s);
};
-}; // namespace
+} // namespace
#endif
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to
- * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
*
*/
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * Foundation, Inc., 51 Franklin Steet, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * Foundation, Inc., 51 Franklin Steet, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
Object construct(const List &);
};
-}; // namespace
+} // namespace
#endif
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to
- * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
*
*/
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to
- * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
*
*/
* Converts a Value into an Object. If the value's type is not ObjectType,
* a null object will be returned (i.e. one with it's internal pointer set
* to 0). If you do not know for sure whether the value is of type
- * ObjectType, you should check the @ref isNull() methods afterwards before
+ * ObjectType, you should check the isValid() methods afterwards before
* calling any methods on the Object.
*
* @return The value converted to an object
* this is discouraged.
*
* If an error occurs during construction, the execution state's exception
- * will be set. This can be tested for with @ref ExecState::hadException().
+ * will be set. This can be tested for with ExecState::hadException().
* Under some circumstances, the exception object may also be returned.
*
* Note: This function should not be called if implementsConstruct() returns
bool implementsHasInstance() const;
/**
- * Checks whether value delegates behaviour to this object. Used by the
+ * Checks whether value delegates behavior to this object. Used by the
* instanceof operator.
*
* @param exec The current execution state
* @param value The value to check
- * @return true if value delegates behaviour to this object, otherwise
+ * @return true if value delegates behavior to this object, otherwise
* false
*/
Boolean hasInstance(ExecState *exec, const Value &value);
* extra object in it's scope. An example of this is functions declared
* inside other functions:
*
+ * \code
* function f() {
*
* function b() {
* // do some stuff
* }
* f.prototype = new String();
+ * \endcode
*
* When the function f.b is executed, its scope will include properties of
* f. So in the example above the return value of f.b() would be the new
/**
* A pointer to a ClassInfo struct for this class. This provides a basic
* facility for run-time type information, and can be used to check an
- * object's class an inheritance (see @ref inherits()). This should
+ * object's class an inheritance (see inherits()). This should
* always return a statically declared pointer, or 0 to indicate that
* there is no class information.
*
* where FooImp inherits from BarImp, you would add the following in your
* class declarations:
*
+ * \code
* class BarImp : public ObjectImp {
* virtual const ClassInfo *classInfo() const { return &info; }
* static const ClassInfo info;
* static const ClassInfo info;
* // ...
* };
+ * \endcode
*
* And in your source file:
*
+ * \code
* const ClassInfo BarImp::info = {0, 0, 0}; // no parent class
* const ClassInfo FooImp::info = {&BarImp::info, 0, 0};
+ * \endcode
*
* @see inherits()
*/
* }
*
* If you have a handle to a statically declared ClassInfo, such as in the
- * @ref classInfo() example, you can check for inheritance without needing
+ * classInfo() example, you can check for inheritance without needing
* an instance of the other class:
*
* if (obj1->inherits(FooImp::info)) {
* Objects)
*
* The default implementation uses classInfo().
- * You should either implement @ref classInfo(), or
- * if you simply need a classname, you can reimplement @ref className()
+ * You should either implement classInfo(), or
+ * if you simply need a classname, you can reimplement className()
* instead.
*
* @see Object::className()
int sourceId = -1, const UString *sourceURL = 0);
/**
- * Array of error names corresponding to @ref ErrorType
+ * Array of error names corresponding to ErrorType
*/
static const char * const * const errorNames;
};
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * Foundation, Inc., 51 Franklin Steet, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * Foundation, Inc., 51 Franklin Steet, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
virtual Value call(ExecState *exec, Object &thisObj, const List &args);
};
-}; // namespace
+} // namespace
#endif
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to
- * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
*
*/
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to
- * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
*
*/
bool equal(ExecState *exec, const Value& v1, const Value& v2);
bool strictEqual(ExecState *exec, const Value &v1, const Value &v2);
/**
- * This operator performs an abstract relational comparision of the two
+ * This operator performs an abstract relational comparison of the two
* arguments that can be of arbitrary type. If possible, conversions to the
* string or number type will take place before the comparison.
*
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to
- * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
*
*/
+// -*- c-basic-offset: 2 -*-
/*
* This file is part of the KDE libraries
* Copyright (C) 2004 Apple Computer, Inc.
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to
- * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
*
*/
struct PropertyMapHashTable;
+/**
+* Saved Properties
+*/
class SavedProperties {
friend class PropertyMap;
public:
SavedProperties& operator=(const SavedProperties&);
};
+/**
+* A hashtable entry for the @ref PropertyMap.
+*/
struct PropertyMapHashTableEntry
{
PropertyMapHashTableEntry() : key(0) { }
int attributes;
int index;
};
+/**
+* Javascript Property Map.
+*/
class PropertyMap {
public:
Entry _singleEntry;
};
-}; // namespace
+} // namespace
#endif // _KJS_PROPERTY_MAP_H_
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to
- * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
*
*/
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to
- * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
*
*/
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to
- * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
*
*/
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to
- * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
*
*/
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * Foundation, Inc., 51 Franklin Steet, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * Foundation, Inc., 51 Franklin Steet, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
RegExp &operator=(const RegExp &);
};
-}; // namespace
+} // namespace
#endif
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * Foundation, Inc., 51 Franklin Steet, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * Foundation, Inc., 51 Franklin Steet, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
uint lastNrSubPatterns;
};
-}; // namespace
+} // namespace
#endif
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to
- * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
*
*/
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to
- * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
*
*/
void release();
};
-}; // namespace KJS
+} // namespace KJS
#endif // KJS_SCOPE_CHAIN_H
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to
- * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
*
*/
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * Foundation, Inc., 51 Franklin Steet, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * Foundation, Inc., 51 Franklin Steet, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
virtual Value call(ExecState *exec, Object &thisObj, const List &args);
};
-}; // namespace
+} // namespace
#endif
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to
- * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
*
*/
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to
- * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
*
*/
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to
- * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
*
*/
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to
- * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
*
*/
/**
* @short Dynamic reference to a string character.
*
- * UCharReference is the dynamic counterpart of @ref UChar. It's used when
- * characters retrieved via index from a @ref UString are used in an
+ * UCharReference is the dynamic counterpart of UChar. It's used when
+ * characters retrieved via index from a UString are used in an
* assignment expression (and therefore can't be treated as being const):
- * <pre>
+ * \code
* UString s("hello world");
* s[0] = 'H';
- * </pre>
+ * \endcode
*
* If that sounds confusing your best bet is to simply forget about the
- * existance of this class and treat is as being identical to @ref UChar.
+ * existence of this class and treat is as being identical to UChar.
*/
class UCharReference {
friend class UString;
* implementation for a construction from QString.
*
* Note: feel free to contact me if you want to see a dummy header for
- * your favourite FooString class here !
+ * your favorite FooString class here !
*/
UString(const QString &);
/**
- * Convenience declaration only ! See @ref UString(const QString&).
+ * Convenience declaration only ! See UString(const QString&).
*/
UString(const DOM::DOMString &);
/**
UString &append(UChar c) { return append(c.uc); }
/**
- * @return The string converted to the 8-bit string type @ref CString().
+ * @return The string converted to the 8-bit string type CString().
*/
CString cstring() const;
/**
/**
* Use this if you want to make sure that this string is a plain ASCII
* string. For example, if you don't want to lose any information when
- * using @ref cstring() or @ref ascii().
+ * using cstring() or ascii().
*
* @return True if the string doesn't contain any non-ASCII characters.
*/
// Returns -1 if the sequence is not valid (including presence of extra bytes).
int decodeUTF8Sequence(const char *);
-}; // namespace
+} // namespace
#endif
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to
- * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
*
*/
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to
- * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
*
*/
/**
* Checks whether or not the value is of a particular tpye
*
- * @param The type to compare with
+ * @param t The type to compare with
* @return true if the value is of the specified type, otherwise false
*/
bool isA(Type t) const { return rep->dispatchType() == t; }
* Converts a Value into an Undefined. If the value's type is not
* UndefinedType, a null object will be returned (i.e. one with it's
* internal pointer set to 0). If you do not know for sure whether the
- * value is of type UndefinedType, you should check the @ref isNull()
+ * value is of type UndefinedType, you should check the isValid()
* methods afterwards before calling any methods on the returned value.
*
* @return The value converted to an Undefined
* Converts a Value into an Null. If the value's type is not NullType,
* a null object will be returned (i.e. one with it's internal pointer set
* to 0). If you do not know for sure whether the value is of type
- * NullType, you should check the @ref isNull() methods afterwards before
+ * NullType, you should check the isValid() methods afterwards before
* calling any methods on the returned value.
*
* @return The value converted to a Null
};
/**
- * Represents an primitive Null value
+ * Represents an primitive Boolean value
*/
class Boolean : public Value {
public:
* Converts a Value into an Boolean. If the value's type is not BooleanType,
* a null object will be returned (i.e. one with it's internal pointer set
* to 0). If you do not know for sure whether the value is of type
- * BooleanType, you should check the @ref isNull() methods afterwards before
+ * BooleanType, you should check the isValid() methods afterwards before
* calling any methods on the returned value.
*
* @return The value converted to a Boolean
};
/**
- * Represents an primitive Null value
+ * Represents an primitive String value
*/
class String : public Value {
public:
* Converts a Value into an String. If the value's type is not StringType,
* a null object will be returned (i.e. one with it's internal pointer set
* to 0). If you do not know for sure whether the value is of type
- * StringType, you should check the @ref isNull() methods afterwards before
+ * StringType, you should check the isValid() methods afterwards before
* calling any methods on the returned value.
*
* @return The value converted to a String
* Converts a Value into an Number. If the value's type is not NumberType,
* a null object will be returned (i.e. one with it's internal pointer set
* to 0). If you do not know for sure whether the value is of type
- * NumberType, you should check the @ref isNull() methods afterwards before
+ * NumberType, you should check the isNull() methods afterwards before
* calling any methods on the returned value.
*
* @return The value converted to a Number