jspro-cvs Mailing List for jsPro
Brought to you by:
wigleys
You can subscribe to this list here.
| 2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(51) |
Oct
(21) |
Nov
|
Dec
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2005 |
Jan
(4) |
Feb
(15) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Stuart W. <wi...@us...> - 2005-02-22 11:31:58
|
Update of /cvsroot/jspro/jsPro/tests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31068 Removed Files: array.html date.html math.html string.html test.js validator.html Log Message: no message --- date.html DELETED --- --- math.html DELETED --- --- test.js DELETED --- --- validator.html DELETED --- --- string.html DELETED --- --- array.html DELETED --- |
|
From: Stuart W. <wi...@us...> - 2005-02-22 11:24:37
|
Update of /cvsroot/jspro/jsPro/debug In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28755/debug Modified Files: debug.js Log Message: no message Index: debug.js =================================================================== RCS file: /cvsroot/jspro/jsPro/debug/debug.js,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** debug.js 19 Jan 2005 16:33:27 -0000 1.7 --- debug.js 22 Feb 2005 11:22:55 -0000 1.8 *************** *** 1,25 **** /** ! * +---------------------------------------------------------------------------+ ! * | jsPro - Debug | ! * +---------------------------------------------------------------------------+ ! * | Copyright (C) 2001-2005 Stuart Wigley | ! * +---------------------------------------------------------------------------+ ! * | This library is free software; you can redistribute it and/or modify it | ! * | under the terms of the GNU Lesser General Public License as published by | ! * | the Free Software Foundation; either version 2.1 of the License, or (at | ! * | your option) any later version. | ! * | | ! * | This library is distributed in the hope that it will be useful, but | ! * | WITHOUT ANY WARRANTY; without even the implied warranty of | ! * | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser | ! * | General Public License for more details. | ! * | | ! * | 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 | ! * +---------------------------------------------------------------------------+ ! * | Authors: Stuart Wigley <stu...@ya...> | ! * | Randolph Fielding <gat...@ci...> | ! * +---------------------------------------------------------------------------+ * $Id$ */ --- 1,25 ---- /** ! * +--------------------------------------------------------------------------+ ! * | jsPro - Debug | ! * +--------------------------------------------------------------------------+ ! * | Copyright (C) 2001-2005 Stuart Wigley | ! * +--------------------------------------------------------------------------+ ! * | This library is free software; you can redistribute it and/or modify it | ! * | under the terms of the GNU Lesser General Public License as published by | ! * | the Free Software Foundation; either version 2.1 of the License, or (at | ! * | your option) any later version. | ! * | | ! * | This library is distributed in the hope that it will be useful, but | ! * | WITHOUT ANY WARRANTY; without even the implied warranty of | ! * | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser | ! * | General Public License for more details. | ! * | | ! * | 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 | ! * +--------------------------------------------------------------------------+ ! * | Authors: Stuart Wigley <stu...@ya...> | ! * | Randolph Fielding <gat...@ci...> | ! * +--------------------------------------------------------------------------+ * $Id$ */ *************** *** 31,35 **** * @author Stuart Wigley * @author Randolph Fielding - * @version 1.1, 09/05/03 * @interface <code>new Debug()</code> */ --- 31,34 ---- *************** *** 44,49 **** * @author Stuart Wigley * @author Randolph Fielding - * @version 1.1, 09/05/03 - * @interface <code>Debug.clear()</code> * @return <code>true</code> if no exceptions are encountered * @return <code>null</code> if an exception is encountered --- 43,46 ---- *************** *** 86,92 **** * @author Stuart Wigley * @author Randolph Fielding - * @version 1.2, 09/05/03 - * @interface <code>Debug.print(vMixedValue)</code> - * @interface <code>Debug.print(vMixedValue, iMessageType)</code> * @param vMixedValue content to be displayed within the debug window * @param iMessageType an integer representing the type of content to display --- 83,86 ---- |
|
From: Stuart W. <wi...@us...> - 2005-02-22 11:24:37
|
Update of /cvsroot/jspro/jsPro/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28755/scripts Modified Files: createREADME.pl Log Message: no message Index: createREADME.pl =================================================================== RCS file: /cvsroot/jspro/jsPro/scripts/createREADME.pl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** createREADME.pl 19 Jan 2005 16:33:27 -0000 1.2 --- createREADME.pl 22 Feb 2005 11:22:32 -0000 1.3 *************** *** 65,69 **** # get the @shortDesc value ! if (m/\@summary(\s*)/) { $sShortDesc = $'; } --- 65,69 ---- # get the @shortDesc value ! $sShortDesc = $'; } |
|
From: Stuart W. <wi...@us...> - 2005-02-22 11:23:29
|
Update of /cvsroot/jspro/jsPro/error In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28755/error Added Files: Error.js Log Message: no message --- NEW FILE: Error.js --- /** * +--------------------------------------------------------------------------+ * | jsPro - Error | * +--------------------------------------------------------------------------+ * | Copyright (C) 2001-2005 Stuart Wigley | * +--------------------------------------------------------------------------+ * | This library is free software; you can redistribute it and/or modify it | * | under the terms of the GNU Lesser General Public License as published by | * | the Free Software Foundation; either version 2.1 of the License, or (at | * | your option) any later version. | * | | * | This library is distributed in the hope that it will be useful, but | * | WITHOUT ANY WARRANTY; without even the implied warranty of | * | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser | * | General Public License for more details. | * | | * | 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 | * +--------------------------------------------------------------------------+ * | Authors: Stuart Wigley <stu...@ya...> | * | Randolph Fielding <gat...@ci...> | * +--------------------------------------------------------------------------+ * $Id: Error.js,v 1.1 2005/02/22 11:23:16 wigleys Exp $ */ /** * Property used in <code>Error.handleError</code> to specify how errors are * reported. Permissable values are: * * 0 No errors are reported. * 1 Report the error name and error message using the status bar of the * active browser window. * 2 Report the error name and error message using an alert box. * 3 Report the error name, error message and debug message using an alert * box. * 4 Report the error name, error message and debug message using a debug * window. An instance of the Debug() class must be available. */ function Error(oDebugWindow, iDebugLevel) { this.oDebugWindow = oDebugWindow; this.iDebugLevel = 4; } /** * * @author Stuart Wigley * @author Randolph Fielding * @requires <code>Debug.print(vMixedValue, sMessageType)</code> * @see <code>Debug()</code> * @see <code>Debug.print()</code> */ Error.prototype.handleError = function() { var sDebugMessage = this.debug; var sErrorMessage = (sDebugMessage) ? sDebugMessage : ''; switch (this.iDebugLevel) { case 0 : break; case 1 : window.status = this.name + ': ' + this.message; break; case 2 : window.alert(this.name + '\n\n' + this.message); break; case 3 : window.alert(this.name + '\n\n' + this.message + '\n\n' + sErrorMessage); break; case 4 : var jsProDebugWindow = oDebug; if (jsProDebugWindow) { var oDebugWindow = jsProDebugWindow.debugWindow; if (oDebugWindow && !oDebugWindow.closed) { jsProDebugWindow.print(this.name + ' ' + this.message + ' ' + sErrorMessage, 1); } } } } /** * Creates an object that is a subclass of Error for handling * ArrayIndexOutOfBounds exceptions. * * @author Stuart Wigley * @author Randolph Fielding * @param sMethodName the name of the method where the exception was thrown * @param iIndex the index of a hypothetical array member attempting to * be accessed * @param iArrayLength the length of the array */ function ArrayIndexOutOfBoundsException(sMethodName, iIndex, iArrayLength) { this.name = 'ArrayIndexOutOfBoundsException'; this.message = sMethodName + ' has been accessed with an illegal index that is either negative or greater than the size of the array.'; this.debug = 'Attempting to access index ' + iIndex.toString() + ', but array has an index range of 0 to ' + (iArrayLength - 1).toString() + '.'; } ArrayIndexOutOfBoundsException.prototype = new Error(); /** * Creates an object that is a subclass of Error for handling IllegalArgument * exceptions. * * @author Stuart Wigley * @author Randolph Fielding * @param sMethodName the name of the method where the exception was thrown * @param vExpectedArgs the number of arguments expected * @param iActualArgs the number of arguments received */ function IllegalArgumentException(sMethodName, vExpectedArgs, iActualArgs) { this.name = 'IllegalArgumentException'; this.message = sMethodName + ' has been passed an illegal number of arguments.'; this.debug = 'Expected ' + vExpectedArgs.toString() + ' argument(s), but received ' + iActualArgs.toString() + ' argument(s).'; } IllegalArgumentException.prototype = new Error(); /** * Creates an object that is a subclass of Error for handling IllegalValue * exceptions. * * @author Randolph Fielding * @param sMethodName the name of the method where the exception was thrown * @param sVariableName the name of the variable containing the illegal value * @param vExpectedVal the value expected in the variable containing the * illegal value * @param vActualVal the value currently in the variable containing the * illegal value */ function IllegalValueException(sMethodName, sVariableName, vExpectedVal, vActualVal) { this.name = 'IllegalValueException'; this.message = sMethodName + ' has encountered an illegal value in variable ' + sVariableName + '.' this.debug = 'Expected a value of ' + vExpectedVal.toString() + ', but contains a value of ' + vActualVal.toString() + '.' } IllegalValueException.prototype = new Error(); /** * Creates an object that is a subclass of Error for handling * MethodNotAvailable exceptions. * * @author Stuart Wigley * @author Randolph Fielding * @param sMethodName the name of the method where the exception was thrown * @param sMethodNameNA the name of the method that was not available */ function MethodNotAvailableException(sMethodName, sMethodNameNA) { this.name = 'MethodNotAvailableException'; this.message = 'A method has been called that is not available.'; this.debug = sMethodName + ' attempted to call ' + sMethodNameNA + '.'; } MethodNotAvailableException.prototype = new Error(); /** * Creates an object that is a subclass of Error for handling * PropertyNotAvailable exceptions. * * @author Randolph Fielding * @param sMethodName the name of the method where the exception was thrown * @param sPropNameNA the name of the property that was not available */ function PropertyNotAvailableException(sMethodName, sPropNameNA) { this.name = 'PropertyNotAvailableException'; this.message = 'A property has been accessed that is not available.'; this.debug = sMethodName + ' attempted to access ' + sPropNameNA + '.'; } PropertyNotAvailableException.prototype = new Error(); /** * Creates an object that is a subclass of Error for handling TypeMismatch * exceptions. * * @author Stuart Wigley * @author Randolph Fielding * @param sMethodName the name of the method where the exception was thrown * @param sExpectedType the name of the expected type of an argument * @param sActualType the name of the actual type of an argument */ function TypeMismatchException(sMethodName, sExpectedType, sActualType) { this.name = 'TypeMismatchException'; this.message = sMethodName + ' has been passed an argument with an illegal or inappropriate type.'; this.debug = 'Expected an argument with a type of ' + sExpectedType + ', but received an argument with a type of ' + sActualType + '.'; } TypeMismatchException.prototype = new Error(); /** * Creates an object that is a subclass of Error for handling Unknown * exceptions. * * @author Stuart Wigley * @author Randolph Fielding * @interface <code>new UnknownException(sMethodName)</code> * @param sMethodName the name of the method where the exception was thrown */ function UnknownException(sMethodName) { this.name = 'UnknownException'; this.message = 'An unknown error has occurred in ' + sMethodName + '.'; } UnknownException.prototype = new Error(); |
|
From: Stuart W. <wi...@us...> - 2005-02-22 11:23:25
|
Update of /cvsroot/jspro/jsPro/chemistry/elements In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28755/chemistry/elements Added Files: Elements.js Log Message: no message --- NEW FILE: Elements.js --- /** * +---------------------------------------------------------------------------+ * | jsPro - Elements | * +---------------------------------------------------------------------------+ * | Copyright (C) 2001-2005 Stuart Wigley | * +---------------------------------------------------------------------------+ * | This library is free software; you can redistribute it and/or modify it | * | under the terms of the GNU Lesser General Public License as published by | * | the Free Software Foundation; either version 2.1 of the License, or (at | * | your option) any later version. | * | | * | This library is distributed in the hope that it will be useful, but | * | WITHOUT ANY WARRANTY; without even the implied warranty of | * | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser | * | General Public License for more details. | * | | * | 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 | [...2151 lines suppressed...] Uuq.prototype = new Chemica(); /** * Creates an object that is a ununhexium subclass of Chemica. * * @author Stuart Wigley * @author Randolph Fielding * @requires <code>Chemica</code> * @see <code>Chemica</code> */ function Uuh() { this.ATOMIC_NUMBER = 116; this.SYMBOL = 'Uuh'; this.NAME = 'ununhexium'; this.ATOMIC_WEIGHT = 292; } Uuh.prototype = new Chemica(); |
|
From: Stuart W. <wi...@us...> - 2005-02-22 11:23:10
|
Update of /cvsroot/jspro/jsPro/misc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28755/misc Added Files: Date.js String.js Validator.js Log Message: no message --- NEW FILE: Date.js --- /** * +--------------------------------------------------------------------------+ * | jsPro - Date | * +--------------------------------------------------------------------------+ * | Copyright (C) 2001-2005 Stuart Wigley | * +--------------------------------------------------------------------------+ * | This library is free software; you can redistribute it and/or modify it | * | under the terms of the GNU Lesser General Public License as published by | * | the Free Software Foundation; either version 2.1 of the License, or (at | * | your option) any later version. | * | | * | This library is distributed in the hope that it will be useful, but | * | WITHOUT ANY WARRANTY; without even the implied warranty of | * | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser | * | General Public License for more details. | * | | * | 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 | [...1656 lines suppressed...] try { var vError = null; var iNumArguments = arguments.length; if (iNumArguments > 0) { throw vError = new IllegalArgumentException('Date.isWeekend', 0, iNumArguments); } var iDayOfWeek = this.getDay(); var sIsWeekend = ((iDayOfWeek == 0) || (iDayOfWeek == 6)) ? '1' : '0'; } catch (vError) { if (vError instanceof Error) { vError.handleError(); } } finally { return vError ? null : sIsWeekend; } } --- NEW FILE: Validator.js --- /** * +--------------------------------------------------------------------------+ * | jsPro - Validator | * +--------------------------------------------------------------------------+ * | Copyright (C) 2001-2005 Stuart Wigley | * +--------------------------------------------------------------------------+ * | This library is free software; you can redistribute it and/or modify it | * | under the terms of the GNU Lesser General Public License as published by | * | the Free Software Foundation; either version 2.1 of the License, or (at | * | your option) any later version. | * | | * | This library is distributed in the hope that it will be useful, but | * | WITHOUT ANY WARRANTY; without even the implied warranty of | * | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser | * | General Public License for more details. | * | | * | 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 | * +--------------------------------------------------------------------------+ * | Authors: Stuart Wigley <stu...@ya...> | * | Randolph Fielding <gat...@ci...> | * +--------------------------------------------------------------------------+ * $Id: Validator.js,v 1.1 2005/02/22 11:22:55 wigleys Exp $ */ /** * Creates an object that provides methods for performing boolean validations. * * @author Stuart Wigley */ function Validator() { } /** * Determine if the specified value is an empty string or a string composed of * only whitespace characters. * * @author Stuart Wigley * @author Randolph Fielding * @param vValue a value of any datatype * @return <code>true</code> if the argument is a string and is * either empty or composed of only whitespace * characters * @return <code>false</code> if the argument is either not a * string or is not an empty string and not a * string composed of only whitespace characters * @return <code>null</code> if an exception is encountered * @throws IllegalArgumentException */ Validator.prototype.isBlankString = function(vValue) { try { var vError = null; var iNumArguments = arguments.length; if (iNumArguments != 1) { throw vError = new IllegalArgumentException('Validator.isBlankString', 1, iNumArguments); } var bIsBlankString = (typeof vValue != 'string') ? false : (vValue.match(/\S/g)) ? false : true; } catch (vError) { if (vError instanceof Error) { vError.handleError(); } } finally { return vError ? null : bIsBlankString; } } /** * Determine if the specified value is a single digit. * * @author Stuart Wigley * @author Randolph Fielding * @param vValue a value of any datatype * @return <code>true</code> ifthe argument is a number and a * single digit * @return <code>false</code> if the argument is either not a * number or is not a single digit * @return <code>null</code> if an exception is encountered * @throws IllegalArgumentException */ Validator.prototype.isDigit = function(vValue) { try { var vError = null; var iNumArguments = arguments.length; if (iNumArguments != 1) { throw vError = new IllegalArgumentException('Validator.isDigit', 1, iNumArguments); } var bIsDigit = (typeof vValue != 'number') ? false : ((vValue > 9) || (vValue.toString().length != 1)) ? false : true; } catch (vError) { if (vError instanceof Error) { vError.handleError(); } } finally { return vError ? null : bIsDigit; } } /** * Determine if the specified value is an integer. * * @author Stuart Wigley * @author Randolph Fielding * @param vValue a value of any datatype * @return <code>true</code> if the argument is a number and an * integer * @return <code>false</code> if the argument is either not a * number or is not an integer * @return <code>null</code> if an exception is encountered * @throws IllegalArgumentException */ Validator.prototype.isInteger = function(vValue) { try { var vError = null; var iNumArguments = arguments.length; if (iNumArguments != 1) { throw vError = new IllegalArgumentException('Validator.isInteger', 1, iNumArguments); } var bIsInteger = (typeof vValue != 'number') ? false : (vValue.toString().indexOf('.') != -1) ? false : true; } catch (vError) { if (vError instanceof Error) { vError.handleError(); } } finally { return vError ? null : bIsInteger; } } --- NEW FILE: String.js --- /** * +--------------------------------------------------------------------------+ * | jsPro - String | * +--------------------------------------------------------------------------+ * | Copyright (C) 2001-2005 Stuart Wigley | * +--------------------------------------------------------------------------+ * | This library is free software; you can redistribute it and/or modify it | * | under the terms of the GNU Lesser General Public License as published by | * | the Free Software Foundation; either version 2.1 of the License, or (at | * | your option) any later version. | * | | * | This library is distributed in the hope that it will be useful, but | * | WITHOUT ANY WARRANTY; without even the implied warranty of | * | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser | * | General Public License for more details. | * | | * | 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 | [...1528 lines suppressed...] if (iTempLineLength > iColumnNum) { sModifiedString += sEolTerminator + aWords[j] + ((j == (iNumWords - 1)) ? '' : ' '); iLineLength = iWordLength + 1; } else if (iTempLineLength == iColumnNum) { sModifiedString += aWords[j] + ((j == (iNumWords - 1)) ? '' : sEolTerminator); iLineLength = 0; } else { sModifiedString += aWords[j] + ((j == (iNumWords - 1)) ? '' : ' '); iLineLength += iWordLength + 1; } } } } catch (vError) { if (vError instanceof Error) { vError.handleError(); } } finally { return vError ? null : sModifiedString; } } |
|
From: Stuart W. <wi...@us...> - 2005-02-22 11:22:41
|
Update of /cvsroot/jspro/jsPro/chemistry In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28755/chemistry Added Files: Chemica.js Log Message: no message --- NEW FILE: Chemica.js --- /** * +--------------------------------------------------------------------------+ * | jsPro - Chemica | * +--------------------------------------------------------------------------+ * | Copyright (C) 2001-2005 Stuart Wigley | * +--------------------------------------------------------------------------+ * | This library is free software; you can redistribute it and/or modify it | * | under the terms of the GNU Lesser General Public License as published by | * | the Free Software Foundation; either version 2.1 of the License, or (at | * | your option) any later version. | * | | * | This library is distributed in the hope that it will be useful, but | * | WITHOUT ANY WARRANTY; without even the implied warranty of | * | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser | * | General Public License for more details. | * | | * | 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 | * +--------------------------------------------------------------------------+ * | Authors: Stuart Wigley <stu...@ya...> | * | Randolph Fielding <gat...@ci...> | * +--------------------------------------------------------------------------+ * $Id: Chemica.js,v 1.1 2005/02/22 11:22:32 wigleys Exp $ */ /** * Creates an object that is a superclass of the chemical element classes. All * of the element classes that subclass this method can then use the provided * get methods. * * @author Stuart Wigley * @author Randolph Fielding */ function Chemica() { } /** * Returns the Atomic Number of this chemical element. * * @author Stuart Wigley * @author Randolph Fielding * @return the Atomic Number of this chemical element */ Chemica.prototype.getAtomicNo = function() { return this.ATOMIC_NUMBER; } /** * Returns the Atomic Weight of this chemical element. * * @author Stuart Wigley * @author Randolph Fielding * @return the Atomic Weight of this chemical element */ Chemica.prototype.getAtomicWt = function() { return this.ATOMIC_WEIGHT; } /** * Returns the Chemical Name of this chemical element. * * @author Stuart Wigley * @author Randolph Fielding * @return the Chemical Name of this chemical element */ Chemica.prototype.getName = function() { return this.NAME; } /** * Returns the Chemical Symbol of this chemical element. * * @author Stuart Wigley * @author Randolph Fielding * @interface <code>Chemica.getSymbol()</code> * @return the Chemical Symbol of this chemical element */ Chemica.prototype.getSymbol = function() { return this.SYMBOL; } |
|
From: Stuart W. <wi...@us...> - 2005-02-22 11:22:27
|
Update of /cvsroot/jspro/jsPro/arrays In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28755/arrays Added Files: Array.js Log Message: no message --- NEW FILE: Array.js --- /** * +--------------------------------------------------------------------------+ * | jsPro - Array | * +--------------------------------------------------------------------------+ * | Copyright (C) 2001-2005 Stuart Wigley | * +--------------------------------------------------------------------------+ * | This library is free software; you can redistribute it and/or modify it | * | under the terms of the GNU Lesser General Public License as published by | * | the Free Software Foundation; either version 2.1 of the License, or (at | * | your option) any later version. | * | | * | This library is distributed in the hope that it will be useful, but | * | WITHOUT ANY WARRANTY; without even the implied warranty of | * | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser | * | General Public License for more details. | * | | * | 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 | [...1285 lines suppressed...] for (var i = iStart; i < iEnd; i++) { if (typeof this[i] == 'number') { fSum += Math.pow((this[i] - fMean), 2); iCount++; } } if (iCount == 1) { throw vError = new UnknownException('Array.variance'); } var fVariance = (iCount == 0) ? null : fSum / (iCount - 1); } catch (vError) { if (vError instanceof Error) { vError.handleError(); } } finally { return vError ? null : fVariance; } } |
Update of /cvsroot/jspro/jsPro In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28755 Removed Files: array.js browser.js chemica.js constants.js date.js elements.js error.js math.js point.js string.js validator.js Log Message: no message --- validator.js DELETED --- --- array.js DELETED --- --- string.js DELETED --- --- math.js DELETED --- --- elements.js DELETED --- --- point.js DELETED --- --- browser.js DELETED --- --- chemica.js DELETED --- --- date.js DELETED --- --- error.js DELETED --- --- constants.js DELETED --- |
|
From: Stuart W. <wi...@us...> - 2005-02-22 11:16:08
|
Update of /cvsroot/jspro/jsPro/chemistry/elements In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27881/elements Log Message: Directory /cvsroot/jspro/jsPro/chemistry/elements added to the repository |
|
From: Stuart W. <wi...@us...> - 2005-02-22 11:14:46
|
Update of /cvsroot/jspro/jsPro/chemistry In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27627/chemistry Log Message: Directory /cvsroot/jspro/jsPro/chemistry added to the repository |
|
From: Stuart W. <wi...@us...> - 2005-02-22 11:14:24
|
Update of /cvsroot/jspro/jsPro/maths In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27500/maths Log Message: Directory /cvsroot/jspro/jsPro/maths added to the repository |
|
From: Stuart W. <wi...@us...> - 2005-02-22 11:13:53
|
Update of /cvsroot/jspro/jsPro/misc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27434/misc Log Message: Directory /cvsroot/jspro/jsPro/misc added to the repository |
|
From: Stuart W. <wi...@us...> - 2005-02-22 11:12:29
|
Update of /cvsroot/jspro/jsPro/error In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27174/error Log Message: Directory /cvsroot/jspro/jsPro/error added to the repository |
|
From: Stuart W. <wi...@us...> - 2005-02-22 11:12:10
|
Update of /cvsroot/jspro/jsPro/arrays In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27047/arrays Log Message: Directory /cvsroot/jspro/jsPro/arrays added to the repository |
|
From: Stuart W. <wi...@us...> - 2005-01-19 16:34:07
|
Update of /cvsroot/jspro/jsPro/tests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13676/tests Modified Files: array.html date.html math.html string.html validator.html Log Message: - Updated copyright message. - Added contributions from Dieter Raber - Started reformatting code for new style guidelines Index: date.html =================================================================== RCS file: /cvsroot/jspro/jsPro/tests/date.html,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** date.html 19 Jan 2005 16:26:43 -0000 1.3 --- date.html 19 Jan 2005 16:33:23 -0000 1.4 *************** *** 2,10 **** <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <!-- ! * +---------------------------------------------------------------------------+ * | jsPro - Date Test Page | ! * +---------------------------------------------------------------------------+ * | Copyright (C) 2001-2005 Stuart Wigley | ! * +---------------------------------------------------------------------------+ * | This library is free software; you can redistribute it and/or modify it | * | under the terms of the GNU Lesser General Public License as published by | --- 2,10 ---- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <!-- ! * +===========================================================================+ * | jsPro - Date Test Page | ! * +===========================================================================+ * | Copyright (C) 2001-2005 Stuart Wigley | ! * +===========================================================================+ * | This library is free software; you can redistribute it and/or modify it | * | under the terms of the GNU Lesser General Public License as published by | *************** *** 20,26 **** * | along with this library; if not, write to the Free Software Foundation, | * | Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ! * +---------------------------------------------------------------------------+ * | Authors: Stuart Wigley <stu...@ya...> | ! * +---------------------------------------------------------------------------+ * $Id$ --> --- 20,26 ---- * | along with this library; if not, write to the Free Software Foundation, | * | Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ! * +===========================================================================+ * | Authors: Stuart Wigley <stu...@ya...> | ! * +===========================================================================+ * $Id$ --> Index: validator.html =================================================================== RCS file: /cvsroot/jspro/jsPro/tests/validator.html,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** validator.html 19 Jan 2005 16:26:43 -0000 1.3 --- validator.html 19 Jan 2005 16:33:23 -0000 1.4 *************** *** 2,10 **** <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <!-- ! * +---------------------------------------------------------------------------+ * | jsPro - Validator Test Page | ! * +---------------------------------------------------------------------------+ * | Copyright (C) 2001-2005 Stuart Wigley | ! * +---------------------------------------------------------------------------+ * | This library is free software; you can redistribute it and/or modify it | * | under the terms of the GNU Lesser General Public License as published by | --- 2,10 ---- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <!-- ! * +===========================================================================+ * | jsPro - Validator Test Page | ! * +===========================================================================+ * | Copyright (C) 2001-2005 Stuart Wigley | ! * +===========================================================================+ * | This library is free software; you can redistribute it and/or modify it | * | under the terms of the GNU Lesser General Public License as published by | *************** *** 20,26 **** * | along with this library; if not, write to the Free Software Foundation, | * | Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ! * +---------------------------------------------------------------------------+ * | Authors: Stuart Wigley <stu...@ya...> | ! * +---------------------------------------------------------------------------+ * $Id$ --> --- 20,26 ---- * | along with this library; if not, write to the Free Software Foundation, | * | Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ! * +===========================================================================+ * | Authors: Stuart Wigley <stu...@ya...> | ! * +===========================================================================+ * $Id$ --> Index: string.html =================================================================== RCS file: /cvsroot/jspro/jsPro/tests/string.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** string.html 19 Jan 2005 16:26:43 -0000 1.2 --- string.html 19 Jan 2005 16:33:23 -0000 1.3 *************** *** 2,10 **** <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <!-- ! * +---------------------------------------------------------------------------+ * | jsPro - String Test Page | ! * +---------------------------------------------------------------------------+ * | Copyright (C) 2001-2005 Stuart Wigley | ! * +---------------------------------------------------------------------------+ * | This library is free software; you can redistribute it and/or modify it | * | under the terms of the GNU Lesser General Public License as published by | --- 2,10 ---- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <!-- ! * +===========================================================================+ * | jsPro - String Test Page | ! * +===========================================================================+ * | Copyright (C) 2001-2005 Stuart Wigley | ! * +===========================================================================+ * | This library is free software; you can redistribute it and/or modify it | * | under the terms of the GNU Lesser General Public License as published by | *************** *** 20,26 **** * | along with this library; if not, write to the Free Software Foundation, | * | Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ! * +---------------------------------------------------------------------------+ * | Authors: Stuart Wigley <stu...@ya...> | ! * +---------------------------------------------------------------------------+ * $Id$ --> --- 20,26 ---- * | along with this library; if not, write to the Free Software Foundation, | * | Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ! * +===========================================================================+ * | Authors: Stuart Wigley <stu...@ya...> | ! * +===========================================================================+ * $Id$ --> Index: array.html =================================================================== RCS file: /cvsroot/jspro/jsPro/tests/array.html,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** array.html 19 Jan 2005 16:26:42 -0000 1.3 --- array.html 19 Jan 2005 16:33:23 -0000 1.4 *************** *** 2,10 **** <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <!-- ! * +---------------------------------------------------------------------------+ * | jsPro - Array Test Page | ! * +---------------------------------------------------------------------------+ * | Copyright (C) 2001-2005 Stuart Wigley | ! * +---------------------------------------------------------------------------+ * | This library is free software; you can redistribute it and/or modify it | * | under the terms of the GNU Lesser General Public License as published by | --- 2,10 ---- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <!-- ! * +===========================================================================+ * | jsPro - Array Test Page | ! * +===========================================================================+ * | Copyright (C) 2001-2005 Stuart Wigley | ! * +===========================================================================+ * | This library is free software; you can redistribute it and/or modify it | * | under the terms of the GNU Lesser General Public License as published by | *************** *** 20,25 **** * | along with this library; if not, write to the Free Software Foundation, | * | Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ! * +---------------------------------------------------------------------------+ ! * +---------------------------------------------------------------------------+ * $Id$ --> --- 20,26 ---- * | along with this library; if not, write to the Free Software Foundation, | * | Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ! * +===========================================================================+ ! * | Authors: Stuart Wigley <stu...@ya...> | ! * +===========================================================================+ * $Id$ --> Index: math.html =================================================================== RCS file: /cvsroot/jspro/jsPro/tests/math.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** math.html 19 Jan 2005 16:26:43 -0000 1.2 --- math.html 19 Jan 2005 16:33:23 -0000 1.3 *************** *** 2,10 **** <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <!-- ! * +---------------------------------------------------------------------------+ * | jsPro - Math Test Page | ! * +---------------------------------------------------------------------------+ * | Copyright (C) 2001-2005 Stuart Wigley | ! * +---------------------------------------------------------------------------+ * | This library is free software; you can redistribute it and/or modify it | * | under the terms of the GNU Lesser General Public License as published by | --- 2,10 ---- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <!-- ! * +===========================================================================+ * | jsPro - Math Test Page | ! * +===========================================================================+ * | Copyright (C) 2001-2005 Stuart Wigley | ! * +===========================================================================+ * | This library is free software; you can redistribute it and/or modify it | * | under the terms of the GNU Lesser General Public License as published by | *************** *** 20,26 **** * | along with this library; if not, write to the Free Software Foundation, | * | Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ! * +---------------------------------------------------------------------------+ * | Authors: Stuart Wigley <stu...@ya...> | ! * +---------------------------------------------------------------------------+ * $Id$ --> --- 20,26 ---- * | along with this library; if not, write to the Free Software Foundation, | * | Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ! * +===========================================================================+ * | Authors: Stuart Wigley <stu...@ya...> | ! * +===========================================================================+ * $Id$ --> |
|
From: Stuart W. <wi...@us...> - 2005-01-19 16:33:40
|
Update of /cvsroot/jspro/jsPro/debug In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13676/debug Modified Files: debug.css debug.html debug.js Log Message: - Updated copyright message. - Added contributions from Dieter Raber - Started reformatting code for new style guidelines Index: debug.js =================================================================== RCS file: /cvsroot/jspro/jsPro/debug/debug.js,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** debug.js 22 Sep 2003 05:07:41 -0000 1.6 --- debug.js 19 Jan 2005 16:33:27 -0000 1.7 *************** *** 1,25 **** /** ! * +-------------------------------------------------------------------------+ ! * | jsPro - Debug | ! * +-------------------------------------------------------------------------+ ! * | Copyright (C) 2001-2003 Stuart Wigley | ! * +-------------------------------------------------------------------------+ ! * | This library is free software; you can redistribute it and/or modify it | ! * | under the terms of the GNU Lesser General Public License as published by| ! * | the Free Software Foundation; either version 2.1 of the License, or (at | ! * | your option) any later version. | ! * | | ! * | This library is distributed in the hope that it will be useful, but | ! * | WITHOUT ANY WARRANTY; without even the implied warranty of | ! * | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser | ! * | General Public License for more details. | ! * | | ! * | 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 | ! * +-------------------------------------------------------------------------+ ! * | Authors: Stuart Wigley <stu...@ya...> | ! * | Randolph Fielding <gat...@ci...> | ! * +-------------------------------------------------------------------------+ * $Id$ */ --- 1,25 ---- /** ! * +---------------------------------------------------------------------------+ ! * | jsPro - Debug | ! * +---------------------------------------------------------------------------+ ! * | Copyright (C) 2001-2005 Stuart Wigley | ! * +---------------------------------------------------------------------------+ ! * | This library is free software; you can redistribute it and/or modify it | ! * | under the terms of the GNU Lesser General Public License as published by | ! * | the Free Software Foundation; either version 2.1 of the License, or (at | ! * | your option) any later version. | ! * | | ! * | This library is distributed in the hope that it will be useful, but | ! * | WITHOUT ANY WARRANTY; without even the implied warranty of | ! * | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser | ! * | General Public License for more details. | ! * | | ! * | 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 | ! * +---------------------------------------------------------------------------+ ! * | Authors: Stuart Wigley <stu...@ya...> | ! * | Randolph Fielding <gat...@ci...> | ! * +---------------------------------------------------------------------------+ * $Id$ */ *************** *** 35,39 **** */ function Debug() { - this.debugWindow = window.open('../debug/debug.html', 'debug', 'width=400,height=600,resizable=yes,scrollbars=yes'); } --- 35,38 ---- *************** *** 72,84 **** oMessageContainer.removeChild(oMessageContainer.firstChild); } ! } ! catch (vError) { ! if (vError instanceof Error) { vError.handleError(); } ! } ! finally { ! return vError ? null : true; } --- 71,79 ---- oMessageContainer.removeChild(oMessageContainer.firstChild); } ! } catch (vError) { if (vError instanceof Error) { vError.handleError(); } ! } finally { return vError ? null : true; } *************** *** 181,193 **** oBodyCell.appendChild(oDocument.createTextNode(sBody)); oDebugWindow.focus(); ! } ! catch (vError) { ! if (vError instanceof Error) { vError.handleError(); } ! } ! finally { ! return vError ? null : true; } --- 176,184 ---- oBodyCell.appendChild(oDocument.createTextNode(sBody)); oDebugWindow.focus(); ! } catch (vError) { if (vError instanceof Error) { vError.handleError(); } ! } finally { return vError ? null : true; } Index: debug.html =================================================================== RCS file: /cvsroot/jspro/jsPro/debug/debug.html,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** debug.html 14 Sep 2003 08:27:27 -0000 1.4 --- debug.html 19 Jan 2005 16:33:27 -0000 1.5 *************** *** 1,26 **** <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <!-- ! * +-------------------------------------------------------------------------+ ! * | jsPro - Debug Window | ! * +-------------------------------------------------------------------------+ ! * | Copyright (C) 2001-2003 Stuart Wigley | ! * +-------------------------------------------------------------------------+ ! * | This library is free software; you can redistribute it and/or modify it | ! * | under the terms of the GNU Lesser General Public License as published by| ! * | the Free Software Foundation; either version 2.1 of the License, or (at | ! * | your option) any later version. | ! * | | ! * | This library is distributed in the hope that it will be useful, but | ! * | WITHOUT ANY WARRANTY; without even the implied warranty of | ! * | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser | ! * | General Public License for more details. | ! * | | ! * | 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 | ! * +-------------------------------------------------------------------------+ ! * | Authors: Stuart Wigley <stu...@ya...> | ! * +-------------------------------------------------------------------------+ * $Id$ --> --- 1,27 ---- <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + <!-- ! * +===========================================================================+ ! * | jsPro - Debug Window | ! * +===========================================================================+ ! * | Copyright (C) 2001-2005 Stuart Wigley | ! * +===========================================================================+ ! * | This library is free software; you can redistribute it and/or modify it | ! * | under the terms of the GNU Lesser General Public License as published by | ! * | the Free Software Foundation; either version 2.1 of the License, or (at | ! * | your option) any later version. | ! * | | ! * | This library is distributed in the hope that it will be useful, but | ! * | WITHOUT ANY WARRANTY; without even the implied warranty of | ! * | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser | ! * | General Public License for more details. | ! * | | ! * | 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 | ! * +===========================================================================+ ! * | Authors: Stuart Wigley <stu...@ya...> | ! * +===========================================================================+ * $Id$ --> Index: debug.css =================================================================== RCS file: /cvsroot/jspro/jsPro/debug/debug.css,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** debug.css 14 Sep 2003 08:55:07 -0000 1.3 --- debug.css 19 Jan 2005 16:33:27 -0000 1.4 *************** *** 1,25 **** /** ! * +-------------------------------------------------------------------------+ ! * | jsPro - Debug Window Stylesheet | ! * +-------------------------------------------------------------------------+ ! * | Copyright (C) 2001-2003 Stuart Wigley | ! * +-------------------------------------------------------------------------+ ! * | This library is free software; you can redistribute it and/or modify it | ! * | under the terms of the GNU Lesser General Public License as published by| ! * | the Free Software Foundation; either version 2.1 of the License, or (at | ! * | your option) any later version. | ! * | | ! * | This library is distributed in the hope that it will be useful, but | ! * | WITHOUT ANY WARRANTY; without even the implied warranty of | ! * | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser | ! * | General Public License for more details. | ! * | | ! * | 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 | ! * +-------------------------------------------------------------------------+ ! * | Authors: Stuart Wigley <stu...@ya...> | ! * | Randolph Fielding <gat...@ci...> | ! * +-------------------------------------------------------------------------+ * $Id$ */ --- 1,25 ---- /** ! * +---------------------------------------------------------------------------+ ! * | jsPro - Debug Window Stylesheet | ! * +---------------------------------------------------------------------------+ ! * | Copyright (C) 2001-2005 Stuart Wigley | ! * +---------------------------------------------------------------------------+ ! * | This library is free software; you can redistribute it and/or modify it | ! * | under the terms of the GNU Lesser General Public License as published by | ! * | the Free Software Foundation; either version 2.1 of the License, or (at | ! * | your option) any later version. | ! * | | ! * | This library is distributed in the hope that it will be useful, but | ! * | WITHOUT ANY WARRANTY; without even the implied warranty of | ! * | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser | ! * | General Public License for more details. | ! * | | ! * | 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 | ! * +---------------------------------------------------------------------------+ ! * | Authors: Stuart Wigley <stu...@ya...> | ! * | Randolph Fielding <gat...@ci...> | ! * +---------------------------------------------------------------------------+ * $Id$ */ |
|
From: Stuart W. <wi...@us...> - 2005-01-19 16:33:37
|
Update of /cvsroot/jspro/jsPro/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13676/scripts Modified Files: createREADME.pl Log Message: - Updated copyright message. - Added contributions from Dieter Raber - Started reformatting code for new style guidelines Index: createREADME.pl =================================================================== RCS file: /cvsroot/jspro/jsPro/scripts/createREADME.pl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** createREADME.pl 6 Oct 2003 12:22:19 -0000 1.1 --- createREADME.pl 19 Jan 2005 16:33:27 -0000 1.2 *************** *** 1,25 **** #!/usr/bin/perl -w ! # +-------------------------------------------------------------------------+ ! # | jsPro - README Creation Script | ! # +-------------------------------------------------------------------------+ ! # | Copyright (C) 2001-2003 Stuart Wigley | ! # +-------------------------------------------------------------------------+ ! # | This library is free software; you can redistribute it and/or modify it | ! # | under the terms of the GNU Lesser General Public License as published by| ! # | the Free Software Foundation; either version 2.1 of the License, or (at | ! # | your option) any later version. | ! # | | ! # | This library is distributed in the hope that it will be useful, but | ! # | WITHOUT ANY WARRANTY; without even the implied warranty of | ! # | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser | ! # | General Public License for more details. | ! # | | ! # | 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 | ! # +-------------------------------------------------------------------------+ ! # | Authors: Stuart Wigley <stu...@ya...> | ! # +-------------------------------------------------------------------------+ # $Id$ --- 1,25 ---- #!/usr/bin/perl -w ! # +---------------------------------------------------------------------------+ ! # | jsPro - README Creation Script | ! # +---------------------------------------------------------------------------+ ! # | Copyright (C) 2001-2005 Stuart Wigley | ! # +---------------------------------------------------------------------------+ ! # | This library is free software; you can redistribute it and/or modify it | ! # | under the terms of the GNU Lesser General Public License as published by | ! # | the Free Software Foundation; either version 2.1 of the License, or (at | ! # | your option) any later version. | ! # | | ! # | This library is distributed in the hope that it will be useful, but | ! # | WITHOUT ANY WARRANTY; without even the implied warranty of | ! # | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser | ! # | General Public License for more details. | ! # | | ! # | 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 | ! # +---------------------------------------------------------------------------+ ! # | Authors: Stuart Wigley <stu...@ya...> | ! # +---------------------------------------------------------------------------+ # $Id$ |
|
From: Stuart W. <wi...@us...> - 2005-01-19 16:27:15
|
Update of /cvsroot/jspro/jsPro/tests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12160 Modified Files: array.html date.html math.html string.html test.js validator.html Log Message: Updated copyright message. Added contributions from Dieter Raber Index: date.html =================================================================== RCS file: /cvsroot/jspro/jsPro/tests/date.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** date.html 27 Oct 2003 07:47:38 -0000 1.2 --- date.html 19 Jan 2005 16:26:43 -0000 1.3 *************** *** 2,26 **** <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <!-- ! * +-------------------------------------------------------------------------+ ! * | jsPro - Date Test Page | ! * +-------------------------------------------------------------------------+ ! * | Copyright (C) 2001-2003 Stuart Wigley | ! * +-------------------------------------------------------------------------+ ! * | This library is free software; you can redistribute it and/or modify it | ! * | under the terms of the GNU Lesser General Public License as published by| ! * | the Free Software Foundation; either version 2.1 of the License, or (at | ! * | your option) any later version. | ! * | | ! * | This library is distributed in the hope that it will be useful, but | ! * | WITHOUT ANY WARRANTY; without even the implied warranty of | ! * | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser | ! * | General Public License for more details. | ! * | | ! * | 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 | ! * +-------------------------------------------------------------------------+ ! * | Authors: Stuart Wigley <stu...@ya...> | ! * +-------------------------------------------------------------------------+ * $Id$ --> --- 2,26 ---- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <!-- ! * +---------------------------------------------------------------------------+ ! * | jsPro - Date Test Page | ! * +---------------------------------------------------------------------------+ ! * | Copyright (C) 2001-2005 Stuart Wigley | ! * +---------------------------------------------------------------------------+ ! * | This library is free software; you can redistribute it and/or modify it | ! * | under the terms of the GNU Lesser General Public License as published by | ! * | the Free Software Foundation; either version 2.1 of the License, or (at | ! * | your option) any later version. | ! * | | ! * | This library is distributed in the hope that it will be useful, but | ! * | WITHOUT ANY WARRANTY; without even the implied warranty of | ! * | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser | ! * | General Public License for more details. | ! * | | ! * | 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 | ! * +---------------------------------------------------------------------------+ ! * | Authors: Stuart Wigley <stu...@ya...> | ! * +---------------------------------------------------------------------------+ * $Id$ --> Index: math.html =================================================================== RCS file: /cvsroot/jspro/jsPro/tests/math.html,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** math.html 13 Oct 2003 15:31:42 -0000 1.1 --- math.html 19 Jan 2005 16:26:43 -0000 1.2 *************** *** 2,26 **** <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <!-- ! * +-------------------------------------------------------------------------+ ! * | jsPro - Math Test Page | ! * +-------------------------------------------------------------------------+ ! * | Copyright (C) 2001-2003 Stuart Wigley | ! * +-------------------------------------------------------------------------+ ! * | This library is free software; you can redistribute it and/or modify it | ! * | under the terms of the GNU Lesser General Public License as published by| ! * | the Free Software Foundation; either version 2.1 of the License, or (at | ! * | your option) any later version. | ! * | | ! * | This library is distributed in the hope that it will be useful, but | ! * | WITHOUT ANY WARRANTY; without even the implied warranty of | ! * | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser | ! * | General Public License for more details. | ! * | | ! * | 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 | ! * +-------------------------------------------------------------------------+ ! * | Authors: Stuart Wigley <stu...@ya...> | ! * +-------------------------------------------------------------------------+ * $Id$ --> --- 2,26 ---- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <!-- ! * +---------------------------------------------------------------------------+ ! * | jsPro - Math Test Page | ! * +---------------------------------------------------------------------------+ ! * | Copyright (C) 2001-2005 Stuart Wigley | ! * +---------------------------------------------------------------------------+ ! * | This library is free software; you can redistribute it and/or modify it | ! * | under the terms of the GNU Lesser General Public License as published by | ! * | the Free Software Foundation; either version 2.1 of the License, or (at | ! * | your option) any later version. | ! * | | ! * | This library is distributed in the hope that it will be useful, but | ! * | WITHOUT ANY WARRANTY; without even the implied warranty of | ! * | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser | ! * | General Public License for more details. | ! * | | ! * | 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 | ! * +---------------------------------------------------------------------------+ ! * | Authors: Stuart Wigley <stu...@ya...> | ! * +---------------------------------------------------------------------------+ * $Id$ --> Index: test.js =================================================================== RCS file: /cvsroot/jspro/jsPro/tests/test.js,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** test.js 13 Oct 2003 15:31:42 -0000 1.1 --- test.js 19 Jan 2005 16:26:43 -0000 1.2 *************** *** 1,25 **** /** ! * +-------------------------------------------------------------------------+ ! * | jsPro - Test | ! * +-------------------------------------------------------------------------+ ! * | Copyright (C) 2001-2003 Stuart Wigley | ! * +-------------------------------------------------------------------------+ ! * | This library is free software; you can redistribute it and/or modify it | ! * | under the terms of the GNU Lesser General Public License as published by| ! * | the Free Software Foundation; either version 2.1 of the License, or (at | ! * | your option) any later version. | ! * | | ! * | This library is distributed in the hope that it will be useful, but | ! * | WITHOUT ANY WARRANTY; without even the implied warranty of | ! * | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser | ! * | General Public License for more details. | ! * | | ! * | 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 | ! * +-------------------------------------------------------------------------+ ! * | Authors: Stuart Wigley <stu...@ya...> | ! * | Randolph Fielding <gat...@ci...> | ! * +-------------------------------------------------------------------------+ * $Id$ */ --- 1,25 ---- /** ! * +---------------------------------------------------------------------------+ ! * | jsPro - Test | ! * +---------------------------------------------------------------------------+ ! * | Copyright (C) 2001-2005 Stuart Wigley | ! * +---------------------------------------------------------------------------+ ! * | This library is free software; you can redistribute it and/or modify it | ! * | under the terms of the GNU Lesser General Public License as published by | ! * | the Free Software Foundation; either version 2.1 of the License, or (at | ! * | your option) any later version. | ! * | | ! * | This library is distributed in the hope that it will be useful, but | ! * | WITHOUT ANY WARRANTY; without even the implied warranty of | ! * | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser | ! * | General Public License for more details. | ! * | | ! * | 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 | ! * +---------------------------------------------------------------------------+ ! * | Authors: Stuart Wigley <stu...@ya...> | ! * | Randolph Fielding <gat...@ci...> | ! * +---------------------------------------------------------------------------+ * $Id$ */ *************** *** 102,114 **** var vResult = eval(sClass + '.' + sMethodName + '(' + sArguments + ')'); ! } ! catch (vError) { ! if (vError instanceof Error) { vError.handleError(); } ! } ! finally { ! if (oOutput) { oOutput.value = vResult; --- 102,110 ---- var vResult = eval(sClass + '.' + sMethodName + '(' + sArguments + ')'); ! } catch (vError) { if (vError instanceof Error) { vError.handleError(); } ! } finally { if (oOutput) { oOutput.value = vResult; Index: validator.html =================================================================== RCS file: /cvsroot/jspro/jsPro/tests/validator.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** validator.html 27 Oct 2003 07:48:01 -0000 1.2 --- validator.html 19 Jan 2005 16:26:43 -0000 1.3 *************** *** 2,26 **** <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <!-- ! * +-------------------------------------------------------------------------+ ! * | jsPro - Validator Test Page | ! * +-------------------------------------------------------------------------+ ! * | Copyright (C) 2001-2003 Stuart Wigley | ! * +-------------------------------------------------------------------------+ ! * | This library is free software; you can redistribute it and/or modify it | ! * | under the terms of the GNU Lesser General Public License as published by| ! * | the Free Software Foundation; either version 2.1 of the License, or (at | ! * | your option) any later version. | ! * | | ! * | This library is distributed in the hope that it will be useful, but | ! * | WITHOUT ANY WARRANTY; without even the implied warranty of | ! * | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser | ! * | General Public License for more details. | ! * | | ! * | 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 | ! * +-------------------------------------------------------------------------+ ! * | Authors: Stuart Wigley <stu...@ya...> | ! * +-------------------------------------------------------------------------+ * $Id$ --> --- 2,26 ---- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <!-- ! * +---------------------------------------------------------------------------+ ! * | jsPro - Validator Test Page | ! * +---------------------------------------------------------------------------+ ! * | Copyright (C) 2001-2005 Stuart Wigley | ! * +---------------------------------------------------------------------------+ ! * | This library is free software; you can redistribute it and/or modify it | ! * | under the terms of the GNU Lesser General Public License as published by | ! * | the Free Software Foundation; either version 2.1 of the License, or (at | ! * | your option) any later version. | ! * | | ! * | This library is distributed in the hope that it will be useful, but | ! * | WITHOUT ANY WARRANTY; without even the implied warranty of | ! * | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser | ! * | General Public License for more details. | ! * | | ! * | 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 | ! * +---------------------------------------------------------------------------+ ! * | Authors: Stuart Wigley <stu...@ya...> | ! * +---------------------------------------------------------------------------+ * $Id$ --> Index: string.html =================================================================== RCS file: /cvsroot/jspro/jsPro/tests/string.html,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** string.html 13 Oct 2003 15:31:42 -0000 1.1 --- string.html 19 Jan 2005 16:26:43 -0000 1.2 *************** *** 2,26 **** <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <!-- ! * +-------------------------------------------------------------------------+ ! * | jsPro - String Test Page | ! * +-------------------------------------------------------------------------+ ! * | Copyright (C) 2001-2003 Stuart Wigley | ! * +-------------------------------------------------------------------------+ ! * | This library is free software; you can redistribute it and/or modify it | ! * | under the terms of the GNU Lesser General Public License as published by| ! * | the Free Software Foundation; either version 2.1 of the License, or (at | ! * | your option) any later version. | ! * | | ! * | This library is distributed in the hope that it will be useful, but | ! * | WITHOUT ANY WARRANTY; without even the implied warranty of | ! * | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser | ! * | General Public License for more details. | ! * | | ! * | 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 | ! * +-------------------------------------------------------------------------+ ! * | Authors: Stuart Wigley <stu...@ya...> | ! * +-------------------------------------------------------------------------+ * $Id$ --> --- 2,26 ---- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <!-- ! * +---------------------------------------------------------------------------+ ! * | jsPro - String Test Page | ! * +---------------------------------------------------------------------------+ ! * | Copyright (C) 2001-2005 Stuart Wigley | ! * +---------------------------------------------------------------------------+ ! * | This library is free software; you can redistribute it and/or modify it | ! * | under the terms of the GNU Lesser General Public License as published by | ! * | the Free Software Foundation; either version 2.1 of the License, or (at | ! * | your option) any later version. | ! * | | ! * | This library is distributed in the hope that it will be useful, but | ! * | WITHOUT ANY WARRANTY; without even the implied warranty of | ! * | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser | ! * | General Public License for more details. | ! * | | ! * | 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 | ! * +---------------------------------------------------------------------------+ ! * | Authors: Stuart Wigley <stu...@ya...> | ! * +---------------------------------------------------------------------------+ * $Id$ --> *************** *** 71,74 **** --- 71,80 ---- </tr> <tr> + <td>String.hex2rgb()</td> + <td> </td> + <td><input id="hex2rgb" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, '\'' + document.getElementById('inputString').value + '\'')" /></td> + <td><input id="hex2rgbResult" name="output" type="text" size="30" readonly="readonly" /></td> + </tr> + <tr> <td>String.htmlEntities()</td> <td> </td> Index: array.html =================================================================== RCS file: /cvsroot/jspro/jsPro/tests/array.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** array.html 27 Oct 2003 07:46:41 -0000 1.2 --- array.html 19 Jan 2005 16:26:42 -0000 1.3 *************** *** 2,26 **** <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <!-- ! * +-------------------------------------------------------------------------+ ! * | jsPro - Array Test Page | ! * +-------------------------------------------------------------------------+ ! * | Copyright (C) 2001-2003 Stuart Wigley | ! * +-------------------------------------------------------------------------+ ! * | This library is free software; you can redistribute it and/or modify it | ! * | under the terms of the GNU Lesser General Public License as published by| ! * | the Free Software Foundation; either version 2.1 of the License, or (at | ! * | your option) any later version. | ! * | | ! * | This library is distributed in the hope that it will be useful, but | ! * | WITHOUT ANY WARRANTY; without even the implied warranty of | ! * | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser | ! * | General Public License for more details. | ! * | | ! * | 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 | ! * +-------------------------------------------------------------------------+ ! * | Authors: Stuart Wigley <stu...@ya...> | ! * +-------------------------------------------------------------------------+ * $Id$ --> --- 2,25 ---- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <!-- ! * +---------------------------------------------------------------------------+ ! * | jsPro - Array Test Page | ! * +---------------------------------------------------------------------------+ ! * | Copyright (C) 2001-2005 Stuart Wigley | ! * +---------------------------------------------------------------------------+ ! * | This library is free software; you can redistribute it and/or modify it | ! * | under the terms of the GNU Lesser General Public License as published by | ! * | the Free Software Foundation; either version 2.1 of the License, or (at | ! * | your option) any later version. | ! * | | ! * | This library is distributed in the hope that it will be useful, but | ! * | WITHOUT ANY WARRANTY; without even the implied warranty of | ! * | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser | ! * | General Public License for more details. | ! * | | ! * | 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 | ! * +---------------------------------------------------------------------------+ ! * +---------------------------------------------------------------------------+ * $Id$ --> *************** *** 67,70 **** --- 66,75 ---- </tr> <tr> + <td>Array.contains()</td> + <td><input id="contains1" name="input" type="text" size="5" /></td> + <td><input id="contains" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'aSample')" /></td> + <td><input id="containsResult" name="output" type="text" size="30" readonly="readonly" /></td> + </tr> + <tr> <td>Array.count()</td> <td> </td> *************** *** 90,94 **** <td><input id="fill" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'aSample')" /></td> <td><input id="fillResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> <tr> <td>Array.max()</td> --- 95,99 ---- <td><input id="fill" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'aSample')" /></td> <td><input id="fillResult" name="output" type="text" size="30" readonly="readonly" /></td> ! </tr> <tr> <td>Array.max()</td> *************** *** 173,176 **** --- 178,187 ---- </tr> <tr> + <td>Array.unique()</td> + <td> </td> + <td><input id="unique" type="button" value="Calculate >" onclick="oTest.evaluateMethod(this, 'aSample')" /></td> + <td><input id="uniqueResult" name="output" type="text" size="30" readonly="readonly" /></td> + </tr> + <tr> <td>Array.variance()</td> <td> |
|
From: <gat...@us...> - 2003-10-30 22:31:57
|
Update of /cvsroot/jspro/jsPro
In directory sc8-pr-cvs1:/tmp/cvs-serv6761
Modified Files:
math.js
Log Message:
QA: methods since R3 now QA'd
Index: math.js
===================================================================
RCS file: /cvsroot/jspro/jsPro/math.js,v
retrieving revision 1.26
retrieving revision 1.27
diff -C2 -d -r1.26 -r1.27
*** math.js 13 Oct 2003 08:57:46 -0000 1.26
--- math.js 30 Oct 2003 22:31:54 -0000 1.27
***************
*** 170,178 ****
* @summary inverse coversine
* @author Stuart Wigley
! * @version 1.0, 10/09/03
* @interface <code>Math.acov(fX)</code>
! * @param fX a floating-point number
* @return the inverse coversine of <code>fX</code> in radians
! * @return <code>NaN</code> if <code>0 < fX < 2</code>
* @return <code>null</code> if an exception is encountered
* @throws IllegalArgumentException
--- 170,180 ----
* @summary inverse coversine
* @author Stuart Wigley
! * @author Randolph Fielding
! * @version 1.1, 10/30/03
* @interface <code>Math.acov(fX)</code>
! * @param fX a floating-point number between 0 and 2 inclusive
* @return the inverse coversine of <code>fX</code> in radians
! * @return <code>NaN</code> if <code>fX < 0</code> or
! * <code>fX > 2</code>
* @return <code>null</code> if an exception is encountered
* @throws IllegalArgumentException
***************
*** 194,198 ****
}
! var fInvCoversine = Math.atan((1 - fX) / Math.sqrt(2 * fX - fX * fX));
}
catch (vError) {
--- 196,200 ----
}
! var fInvCoversine = Math.atan((1 - fX) / Math.sqrt(fX * (2 - fX)));
}
catch (vError) {
***************
*** 307,314 ****
* @summary inverse exsecant
* @author Stuart Wigley
! * @version 1.0, 10/06/03
* @interface <code>Math.aexsec(fX)</code>
! * @param fX a floating-point number
! * @return the inverse exsecant of <code>fX</code>
* @return <code>NaN</code> if <code>-2 < fX < 0</code>
* @return <code>null</code> if an exception is encountered
--- 309,318 ----
* @summary inverse exsecant
* @author Stuart Wigley
! * @author Randolph Fielding
! * @version 1.1, 10/30/03
* @interface <code>Math.aexsec(fX)</code>
! * @param fX a floating-point number less than or equal to -2 or
! * greater than or equal to 0
! * @return the inverse exsecant of <code>fX</code> in radians
* @return <code>NaN</code> if <code>-2 < fX < 0</code>
* @return <code>null</code> if an exception is encountered
***************
*** 331,335 ****
}
! var fInvExsecant = Math.atan(Math.sqrt((fX * fX) + (2 * fX)));
}
catch (vError) {
--- 335,339 ----
}
! var fInvExsecant = Math.atan(Math.sqrt(fX * (fX + 2)));
}
catch (vError) {
***************
*** 352,360 ****
* @summary inverse haversine
* @author Stuart Wigley
! * @version 1.0, 10/09/03
* @interface <code>Math.ahav(fX)</code>
! * @param fX a floating-point number
* @return the inverse haversine of <code>fX</code> in radians
! * @return <code>NaN</code> if <code>0 < fX < 1</code>
* @return <code>null</code> if an exception is encountered
* @throws IllegalArgumentException
--- 356,366 ----
* @summary inverse haversine
* @author Stuart Wigley
! * @author Randolph Fielding
! * @version 1.1, 10/30/03
* @interface <code>Math.ahav(fX)</code>
! * @param fX a floating-point number between 0 and 1 inclusive
* @return the inverse haversine of <code>fX</code> in radians
! * @return <code>NaN</code> if <code>fX < 0</code> or
! * <code>fX > 1</code>
* @return <code>null</code> if an exception is encountered
* @throws IllegalArgumentException
***************
*** 376,380 ****
}
! var fInvHaversine = Math.atan(2 * Math.sqrt(fX - fX * fX) / (1 - 2 * fX)) ;
}
catch (vError) {
--- 382,386 ----
}
! var fInvHaversine = Math.atan((2 * Math.sqrt(fX * (1 - fX))) / (1 - (2 * fX)));
}
catch (vError) {
***************
*** 392,402 ****
/**
! * Calculates if two numbers are approximately equal. Approximation defaults
! * to +/- 0.01 but can be optionally set using the <code>fEpsilon</code>
! * argument
*
! * @summary approximately equal
* @author Stuart Wigley
! * @version 1.0, 09/24/03
* @interface <code>Math.approx(fX, fY)</code>
* @interface <code>Math.approx(fX, fY, fEpsilon)</code>
--- 398,411 ----
/**
! * Determines whether two numbers are approximately equal. Given two numbers
! * (x and y) and an accuracy of approximation (epsilon), the range of values
! * where y is approximately equal to x is defined by |x| < epsilon for y = 0
! * and by |(y - x) / y| < epsilon for all other y. By default epsilon is set
! * to 0.01, but this can be overridden with the optional epsilon argument.
*
! * @summary are numbers approximately equal?
* @author Stuart Wigley
! * @author Randolph Fielding
! * @version 1.1, 09/25/03
* @interface <code>Math.approx(fX, fY)</code>
* @interface <code>Math.approx(fX, fY, fEpsilon)</code>
***************
*** 404,414 ****
* @param fY a floating-point number
* @param fEpsilon accuracy of approximation (optional)
! * @return true if <code>fX</code> and <code>fY</code> are
! * approximately equal; false otherwise
* @return <code>null</code> if an exception is encountered
* @throws IllegalArgumentException
* @throws TypeMismatchException
*/
! Math.approx = function() {
try {
--- 413,426 ----
* @param fY a floating-point number
* @param fEpsilon accuracy of approximation (optional)
! * @return <code>true</code> if <code>fX</code> and
! * <code>fY</code> are approximately equal
! * @return <code>false</code> if <code>fX</code> and
! * <code>fY</code> are not approximately equal
* @return <code>null</code> if an exception is encountered
* @throws IllegalArgumentException
+ * @throws IllegalValueException
* @throws TypeMismatchException
*/
! Math.approx = function(fX, fY) {
try {
***************
*** 416,431 ****
var vError = null;
var iNumArguments = arguments.length;
- var fX, fY;
var fEpsilon = 0.01;
! if (iNumArguments == 2) {
! fX = arguments[0];
! fY = arguments[1];
} else if (iNumArguments == 3) {
- fX = arguments[0];
- fY = arguments[1];
fEpsilon = arguments[2];
- } else {
- throw vError = new IllegalArgumentException('Math.approx', '2 or 3', iNumArguments);
}
--- 428,437 ----
var vError = null;
var iNumArguments = arguments.length;
var fEpsilon = 0.01;
! if ((iNumArguments < 2) || (iNumArguments > 3)) {
! throw vError = new IllegalArgumentException('Math.approx', '2 or 3', iNumArguments);
} else if (iNumArguments == 3) {
fEpsilon = arguments[2];
}
***************
*** 433,444 ****
throw vError = new TypeMismatchException('Math.approx', 'number', typeof fX);
}
if (typeof fY != 'number') {
throw vError = new TypeMismatchException('Math.approx', 'number', typeof fY);
}
if (typeof fEpsilon != 'number') {
throw vError = new TypeMismatchException('Math.approx', 'number', typeof fEpsilon);
}
! var bApprox = (Math.abs(fX - fY) < fEpsilon) ? true : false;
}
catch (vError) {
--- 439,456 ----
throw vError = new TypeMismatchException('Math.approx', 'number', typeof fX);
}
+
if (typeof fY != 'number') {
throw vError = new TypeMismatchException('Math.approx', 'number', typeof fY);
}
+
if (typeof fEpsilon != 'number') {
throw vError = new TypeMismatchException('Math.approx', 'number', typeof fEpsilon);
}
! if (fEpsilon < 0) {
! throw vError = new IllegalValueException('Math.approx', 'fEpsilon', '0 or greater', fEpsilon);
! }
!
! var bApprox = (fY == 0) ? Math.abs(fX) < fEpsilon : Math.abs((fY - fX) / fY) < fEpsilon;
}
catch (vError) {
***************
*** 456,474 ****
/**
! * Calculates the polar angle (argument) of a pair of rectangular coordinates.
*
* @summary polar angle (argument)
* @author Stuart Wigley
! * @version 1.0, 09/24/03
! * @interface <code>Math.arg(fX, fY)</code>
! * @requires <code>math.sign()</code>
! * @param fX a floating-point number
! * @param fY a floating-point number
! * @return the polar angle (argument)
* @return <code>null</code> if an exception is encountered
* @throws IllegalArgumentException
- * @throws TypeMismatchException
* @throws MethodNotAvailableException
! * @see <code>math.sign()</code>
*/
Math.arg = function(fX, fY) {
--- 468,488 ----
/**
! * Calculates and returns the polar angle (argument) of a point (x, y) in 2D
! * Cartesian space.
*
* @summary polar angle (argument)
* @author Stuart Wigley
! * @author Randolph Fielding
! * @version 1.1, 09/25/03
! * @interface <code>Math.arg(fAbscissa, fOrdinate)</code>
! * @requires <code>Math.sign(fX)</code>
! * @param fAbscissa the x-coordinate of an ordered pair
! * @param fOrdinate the y-coordinate of an ordered pair
! * @return the polar angle (argument) of the point (x, y)
* @return <code>null</code> if an exception is encountered
* @throws IllegalArgumentException
* @throws MethodNotAvailableException
! * @throws TypeMismatchException
! * @see <code>Math.sign()</code>
*/
Math.arg = function(fX, fY) {
***************
*** 490,498 ****
throw vError = new TypeMismatchException('Math.arg', 'number', typeof fX);
}
if (typeof fY != 'number') {
throw vError = new TypeMismatchException('Math.arg', 'number', typeof fY);
}
! var fArgument = Math.atan2(fY, fX) + (Math.PI / 2) * Math.sign(fY) * (1 - Math.sign(fX));
}
catch (vError) {
--- 504,513 ----
throw vError = new TypeMismatchException('Math.arg', 'number', typeof fX);
}
+
if (typeof fY != 'number') {
throw vError = new TypeMismatchException('Math.arg', 'number', typeof fY);
}
! var fArgument = Math.atan2(fY, fX) + ((Math.PI / 2) * Math.sign(fY) * (1 - Math.sign(fX)));
}
catch (vError) {
***************
*** 701,709 ****
* @summary inverse versine
* @author Stuart Wigley
! * @version 1.0, 10/02/03
* @interface <code>Math.avers(fX)</code>
! * @param fX a floating-point number
! * @return the inverse versine of <code>fX</code>
! * @return <code>NaN</code> if <code>0 < fX < 2</code>
* @return <code>null</code> if an exception is encountered
* @throws IllegalArgumentException
--- 716,726 ----
* @summary inverse versine
* @author Stuart Wigley
! * @author Randolph Fielding
! * @version 1.1, 10/30/03
* @interface <code>Math.avers(fX)</code>
! * @param fX a floating-point number between 0 and 2 inclusive
! * @return the inverse versine of <code>fX</code> in radians
! * @return <code>NaN</code> if <code>fX < 0</code> or
! * <code>fX > 2</code>
* @return <code>null</code> if an exception is encountered
* @throws IllegalArgumentException
***************
*** 725,729 ****
}
! var fAvers = Math.atan(Math.sqrt(2 * fX - fX * fX) / (1 - fX));
}
catch (vError) {
--- 742,746 ----
}
! var fInvVersine = Math.atan(Math.sqrt(fX * (2 - fX)) / (1 - fX));
}
catch (vError) {
***************
*** 735,739 ****
finally {
! return vError ? null : fAvers;
}
}
--- 752,756 ----
finally {
! return vError ? null : fInvVersine;
}
}
***************
*** 1519,1527 ****
/**
! * Calculates the exponent of 10. ie 10 to the power of <code>fX</code>
*
! * @summary exponent of 10
* @author Stuart Wigley
! * @version 1.0, 09/24/03
* @interface <code>Math.exp10(fX)</code>
* @param fX a floating-point number
--- 1536,1545 ----
/**
! * Calculates and returns 10 raised to the power of x for a number x.
*
! * @summary 10 raised to the power of x
* @author Stuart Wigley
! * @author Randolph Fielding
! * @version 1.1, 09/25/03
* @interface <code>Math.exp10(fX)</code>
* @param fX a floating-point number
***************
*** 1546,1550 ****
}
! var fExponent10 = Math.pow(10, fX);
}
catch (vError) {
--- 1564,1568 ----
}
! var fExp10 = Math.pow(10, fX);
}
catch (vError) {
***************
*** 1556,1560 ****
finally {
! return vError ? null : fExponent10;
}
}
--- 1574,1578 ----
finally {
! return vError ? null : fExp10;
}
}
***************
*** 1650,1663 ****
/**
! * Calculates and returns the factorial of a number.
*
* @summary factorial
* @author Stuart Wigley
! * @version 1.0, 10/02/03
* @interface <code>Math.factorial(iX)</code>
! * @param fX an integer
* @return the factorial of <code>iX</code>
* @return <code>null</code> if an exception is encountered
* @throws IllegalArgumentException
* @throws TypeMismatchException
*/
--- 1668,1683 ----
/**
! * Calculates and returns the factorial of a positive integer.
*
* @summary factorial
* @author Stuart Wigley
! * @author Randolph Fielding
! * @version 1.1, 10/30/03
* @interface <code>Math.factorial(iX)</code>
! * @param iX a positive integer
* @return the factorial of <code>iX</code>
* @return <code>null</code> if an exception is encountered
* @throws IllegalArgumentException
+ * @throws IllegalValueException
* @throws TypeMismatchException
*/
***************
*** 1677,1680 ****
--- 1697,1704 ----
}
+ if (iX < 0) {
+ throw vError = new IllegalValueException('Math.factorial', 'iX', '0 or greater', iX);
+ }
+
var iFactorial = 1;
***************
*** 2593,2605 ****
/**
! * Returns the mantissa part of a floating point number, or zero for an integer.
*
* @summary mantissa
* @author Stuart Wigley
! * @version 1.0, 10/01/03
* @interface <code>Math.mantissa(fX)</code>
* @param fX a floating-point number
! * @return the mantissa part of a floating point number
! * @return zero for an integer
* @return <code>null</code> if an exception is encountered
* @throws IllegalArgumentException
--- 2617,2630 ----
/**
! * Returns the mantissa (i.e. the positive, fractional part) of a floating-
! * point number.
*
* @summary mantissa
* @author Stuart Wigley
! * @author Randolph Fielding
! * @version 1.1, 10/30/03
* @interface <code>Math.mantissa(fX)</code>
* @param fX a floating-point number
! * @return the mantissa of <code>fX</code>
* @return <code>null</code> if an exception is encountered
* @throws IllegalArgumentException
***************
*** 2621,2632 ****
}
! var fMantissa = 0;
! var absfX = Math.abs(fX);
!
! if (fX.toString().indexOf('.') != -1) {
! //FIXME:
! // 67.8 - 67 = 0.7999999999999972
! fMantissa = absfX - Math.floor(absfX);
! }
}
catch (vError) {
--- 2646,2651 ----
}
! var fAbsX = Math.abs(fX);
! var fMantissa = fAbsX - Math.floor(fAbsX);
}
catch (vError) {
|
|
From: <gat...@us...> - 2003-10-27 07:53:46
|
Update of /cvsroot/jspro/jsPro
In directory sc8-pr-cvs1:/tmp/cvs-serv3035
Modified Files:
date.js
Log Message:
QA: methods released in R3 now QA'd
Index: date.js
===================================================================
RCS file: /cvsroot/jspro/jsPro/date.js,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** date.js 1 Oct 2003 10:02:14 -0000 1.8
--- date.js 27 Oct 2003 07:50:48 -0000 1.9
***************
*** 478,490 ****
/**
! * Returns the number of days in the year for this date as either 365 or 366.
*
* @summary days in year
* @author Stuart Wigley
! * @version 1.0, 12/01/03
* @interface <code>Date.getDaysInYear()</code>
* @requires <code>Date.isLeapYear()</code>
* @return the number of days in the year for this date as either
! * 365 or 366
* @return <code>null</code> if an exception is encountered
* @throws IllegalArgumentException
--- 478,492 ----
/**
! * Returns the number of days in the year for this date as either '365' or
! * '366'.
*
* @summary days in year
* @author Stuart Wigley
! * @author Randolph Fielding
! * @version 1.1, 10/27/03
* @interface <code>Date.getDaysInYear()</code>
* @requires <code>Date.isLeapYear()</code>
* @return the number of days in the year for this date as either
! * '365' or '366'
* @return <code>null</code> if an exception is encountered
* @throws IllegalArgumentException
***************
*** 514,518 ****
}
! var sDaysInYear = (sIsLeapYear == '1') ? '366' : '365';
}
catch (vError) {
--- 516,520 ----
}
! var sDaysInYear = (parseInt(sIsLeapYear) == 1) ? '366' : '365';
}
catch (vError) {
***************
*** 530,541 ****
/**
! * Calculates the day on which Easter Sunday falls for the current year using
! * Butcher's Method. Returns an integer between '1' and '31'
*
! * @summary easter day
* @author Stuart Wigley
! * @version 1.0, 12/01/03
* @interface <code>Date.getEasterDay()</code>
! * @return the day on which Easter Sunday falls
* @return <code>null</code> if an exception is encountered
* @throws IllegalArgumentException
--- 532,549 ----
/**
! * Calculates and returns the day of the month on which Easter Sunday falls as
! * a one- or two-digit string between '1' and '31', inclusive, using Butcher's
! * Algorithm and the year contained in this date. NOTE: Butcher's Algorithm
! * holds true for any year in the Gregorian Calendar (i.e. a year greater than
! * or equal to 1583).
*
! * @summary Easter day
* @author Stuart Wigley
! * @author Randolph Fielding
! * @version 1.1, 10/27/03
* @interface <code>Date.getEasterDay()</code>
! * @return the day of the month on which Easter Sunday falls as a
! * one- or two-digit string between '1' and '31',
! * inclusive
* @return <code>null</code> if an exception is encountered
* @throws IllegalArgumentException
***************
*** 549,553 ****
if (iNumArguments > 0) {
! throw vError = new IllegalArgumentException('Date.getEasterDate', 0, iNumArguments);
}
--- 557,561 ----
if (iNumArguments > 0) {
! throw vError = new IllegalArgumentException('Date.getEasterDay', 0, iNumArguments);
}
***************
*** 560,571 ****
var f = Math.floor((b + 8) / 25);
var g = Math.floor((b - f + 1) / 3);
! var h = (19 * a + b - d - g + 15) % 30;
var i = Math.floor(c / 4);
var k = c % 4;
! var l = (32 + 2 * e + 2 * i - h - k) % 7;
! var m = Math.floor((a + 11 * h + 22 * l) / 451);
! var p = (h + l - 7 * m + 114) % 31;
var iEasterDay = p + 1;
!
}
catch (vError) {
--- 568,579 ----
var f = Math.floor((b + 8) / 25);
var g = Math.floor((b - f + 1) / 3);
! var h = ((19 * a) + b - d - g + 15) % 30;
var i = Math.floor(c / 4);
var k = c % 4;
! var l = (32 + (2 * e) + (2 * i) - h - k) % 7;
! var m = Math.floor((a + (11 * h) + (22 * l)) / 451);
! var p = (h + l - (7 * m) + 114) % 31;
var iEasterDay = p + 1;
! var sEasterDay = iEasterDay.toString();
}
catch (vError) {
***************
*** 577,581 ****
finally {
! return vError ? null : iEasterDay;
}
}
--- 585,589 ----
finally {
! return vError ? null : sEasterDay;
}
}
***************
*** 583,594 ****
/**
! * Calculates the month in which Easter Sunday falls for the current year using
! * Butcher's Method. Returns '3' for March or '4' for April.
*
! * @summary easter month
* @author Stuart Wigley
! * @version 1.0, 12/01/03
* @interface <code>Date.getEasterMonth()</code>
! * @return the month in which Easter Sunday falls
* @return <code>null</code> if an exception is encountered
* @throws IllegalArgumentException
--- 591,608 ----
/**
! * Calculates and returns the month of the year in which Easter Sunday falls as
! * a one-digit string (i.e. '3' for March or '4' for April) using Butcher's
! * Algorithm and the year contained in this date. NOTE: Butcher's Algorithm
! * holds true for any year in the Gregorian Calendar (i.e. a year greater than
! * or equal to 1583).
*
! * @summary Easter month
* @author Stuart Wigley
! * @author Randolph Fielding
! * @version 1.1, 10/27/03
* @interface <code>Date.getEasterMonth()</code>
! * @return the month of the year in which Easter Sunday falls as
! * a one-digit string (i.e. '3' for March or '4' for
! * April)
* @return <code>null</code> if an exception is encountered
* @throws IllegalArgumentException
***************
*** 613,623 ****
var f = Math.floor((b + 8) / 25);
var g = Math.floor((b - f + 1) / 3);
! var h = (19 * a + b - d - g + 15) % 30;
var i = Math.floor(c / 4);
var k = c % 4;
! var l = (32 + 2 * e + 2 * i - h - k) % 7;
! var m = Math.floor((a + 11 * h + 22 * l) / 451);
! var iEasterMonth = Math.floor((h + l - 7 * m + 114) / 31);
!
}
catch (vError) {
--- 627,637 ----
var f = Math.floor((b + 8) / 25);
var g = Math.floor((b - f + 1) / 3);
! var h = ((19 * a) + b - d - g + 15) % 30;
var i = Math.floor(c / 4);
var k = c % 4;
! var l = (32 + (2 * e) + (2 * i) - h - k) % 7;
! var m = Math.floor((a + (11 * h) + (22 * l)) / 451);
! var iEasterMonth = Math.floor((h + l - (7 * m) + 114) / 31);
! var sEasterMonth = iEasterMonth.toString();
}
catch (vError) {
***************
*** 629,633 ****
finally {
! return vError ? null : iEasterMonth;
}
}
--- 643,647 ----
finally {
! return vError ? null : sEasterMonth;
}
}
***************
*** 1711,1721 ****
/**
! * Returns Zodiac sign for the current date.
*
! * @summary zodiac sign
* @author Stuart Wigley
! * @version 1.0, 10/01/03
* @interface <code>Date.getZodiacSign()</code>
! * @return the Zodiac sign for the current date
* @return <code>null</code> if an exception is encountered
* @throws IllegalArgumentException
--- 1725,1736 ----
/**
! * Returns the Zodiac sign for this date.
*
! * @summary Zodiac sign
* @author Stuart Wigley
! * @author Randolph Fielding
! * @version 1.1, 10/27/03
* @interface <code>Date.getZodiacSign()</code>
! * @return the Zodiac sign for this date
* @return <code>null</code> if an exception is encountered
* @throws IllegalArgumentException
***************
*** 1729,1733 ****
if (iNumArguments > 0) {
! throw vError = new IllegalArgumentException('Date.getZodiac', 0, iNumArguments);
}
--- 1744,1748 ----
if (iNumArguments > 0) {
! throw vError = new IllegalArgumentException('Date.getZodiacSign', 0, iNumArguments);
}
***************
*** 1736,1763 ****
var sZodiacSign = '';
! if (iMonth == 1 && iDay >= 20 || iMonth == 2 && iDay <=18) {
! sZodiacSign = "Aquarius";
! } else if (iMonth == 2 && iDay >=19 || iMonth == 3 && iDay <=20) {
! sZodiacSign = "Pisces";
! } else if (iMonth == 3 && iDay >=21 || iMonth == 4 && iDay <=19) {
! sZodiacSign = "Aries";
! } else if (iMonth == 4 && iDay >=20 || iMonth == 5 && iDay <=20) {
! sZodiacSign = "Taurus";
! } else if (iMonth == 5 && iDay >=21 || iMonth == 6 && iDay <=21) {
! sZodiacSign = "Gemini";
! } else if (iMonth == 6 && iDay >=22 || iMonth == 7 && iDay <=22) {
! sZodiacSign = "Cancer";
! } else if (iMonth == 7 && iDay >=23 || iMonth == 8 && iDay <=22) {
! sZodiacSign = "Leo";
! } else if (iMonth == 8 && iDay >=23 || iMonth == 9 && iDay <=22) {
! sZodiacSign = "Virgo";
! } else if (iMonth == 9 && iDay >=23 || iMonth == 10 && iDay <=22) {
! sZodiacSign = "Libra";
! } else if (iMonth == 10 && iDay >=23 || iMonth == 11 && iDay <=21) {
! sZodiacSign = "Scorpio";
! } else if (iMonth == 11 && iDay >=22 || iMonth == 12 && iDay <=21) {
! sZodiacSign = "Sagittarius";
! } else if (iMonth == 12 && iDay >=22 || iMonth == 1 && iDay <=19) {
! sZodiacSign = "Capricorn";
}
}
--- 1751,1778 ----
var sZodiacSign = '';
! if (((iMonth == 1) && (iDay >= 20)) || ((iMonth == 2) && (iDay <= 18))) {
! sZodiacSign = 'Aquarius';
! } else if (((iMonth == 2) && (iDay >= 19)) || ((iMonth == 3) && (iDay <= 20))) {
! sZodiacSign = 'Pisces';
! } else if (((iMonth == 3) && (iDay >= 21)) || ((iMonth == 4) && (iDay <= 19))) {
! sZodiacSign = 'Aries';
! } else if (((iMonth == 4) && (iDay >= 20)) || ((iMonth == 5) && (iDay <= 20))) {
! sZodiacSign = 'Taurus';
! } else if (((iMonth == 5) && (iDay >= 21)) || ((iMonth == 6) && (iDay <= 20))) {
! sZodiacSign = 'Gemini';
! } else if (((iMonth == 6) && (iDay >= 21)) || ((iMonth == 7) && (iDay <= 22))) {
! sZodiacSign = 'Cancer';
! } else if (((iMonth == 7) && (iDay >= 23)) || ((iMonth == 8) && (iDay <= 22))) {
! sZodiacSign = 'Leo';
! } else if (((iMonth == 8) && (iDay >= 23)) || ((iMonth == 9) && (iDay <= 22))) {
! sZodiacSign = 'Virgo';
! } else if (((iMonth == 9) && (iDay >= 23)) || ((iMonth == 10) && (iDay <= 22))) {
! sZodiacSign = 'Libra';
! } else if (((iMonth == 10) && (iDay >= 23)) || ((iMonth == 11) && (iDay <= 21))) {
! sZodiacSign = 'Scorpio';
! } else if (((iMonth == 11) && (iDay >= 22)) || ((iMonth == 12) && (iDay <= 21))) {
! sZodiacSign = 'Sagittarius';
! } else if (((iMonth == 12) && (iDay >= 22)) || ((iMonth == 1) && (iDay <= 19))) {
! sZodiacSign = 'Capricorn';
}
}
***************
*** 1835,1846 ****
/**
! * Determines if the current day is a weekday in the range Monday to Friday.
*
* @summary is weekday?
* @author Stuart Wigley
! * @version 1.0, 10/01/03
* @interface <code>Date.isWeekday()</code>
! * @return '1' if the day is a weekday
! * @return '0' if the day is not a weekday
* @return <code>null</code> if an exception is encountered
* @throws IllegalArgumentException
--- 1850,1864 ----
/**
! * Determines if the day of the week for this date is a weekday (i.e. Monday,
! * Tuesday, Wednesday, Thursday, or Friday).
*
* @summary is weekday?
* @author Stuart Wigley
! * @author Randolph Fielding
! * @version 1.1, 10/27/03
* @interface <code>Date.isWeekday()</code>
! * @return '1' if the day of the week for this date is a weekday
! * @return '0' if the day of the week for this date is not a
! * weekday
* @return <code>null</code> if an exception is encountered
* @throws IllegalArgumentException
***************
*** 1858,1862 ****
var iDayOfWeek = this.getDay();
! var sIsWeekDay = (iDayOfWeek > 0 && iDayOfWeek < 6) ? '1' : '0';
}
catch (vError) {
--- 1876,1880 ----
var iDayOfWeek = this.getDay();
! var sIsWeekday = ((iDayOfWeek >= 1) && (iDayOfWeek <= 5)) ? '1' : '0';
}
catch (vError) {
***************
*** 1868,1872 ****
finally {
! return vError ? null : sIsWeekDay;
}
}
--- 1886,1890 ----
finally {
! return vError ? null : sIsWeekday;
}
}
***************
*** 1874,1885 ****
/**
! * Determines if the current day is a weekend ie Saturday or Sunday
*
* @summary is weekend?
* @author Stuart Wigley
! * @version 1.0, 10/01/03
* @interface <code>Date.isWeekend()</code>
! * @return '1' if the day is a weekend
! * @return '0' if the day is not a weekend
* @return <code>null</code> if an exception is encountered
* @throws IllegalArgumentException
--- 1892,1907 ----
/**
! * Determines if the day of the week for this date is a weekend day (i.e.
! * Saturday or Sunday).
*
* @summary is weekend?
* @author Stuart Wigley
! * @author Randolph Fielding
! * @version 1.1, 10/27/03
* @interface <code>Date.isWeekend()</code>
! * @return '1' if the day of the week for this date is a weekend
! * day
! * @return '0' if the day of the week for this date is not a
! * weekend day
* @return <code>null</code> if an exception is encountered
* @throws IllegalArgumentException
***************
*** 1897,1901 ****
var iDayOfWeek = this.getDay();
! var sIsWeekEnd = (iDayOfWeek == 0 || iDayOfWeek == 6) ? '1' : '0';
}
catch (vError) {
--- 1919,1923 ----
var iDayOfWeek = this.getDay();
! var sIsWeekend = ((iDayOfWeek == 0) || (iDayOfWeek == 6)) ? '1' : '0';
}
catch (vError) {
***************
*** 1907,1911 ****
finally {
! return vError ? null : sIsWeekEnd;
}
}
--- 1929,1933 ----
finally {
! return vError ? null : sIsWeekend;
}
}
|
|
From: <gat...@us...> - 2003-10-27 07:51:46
|
Update of /cvsroot/jspro/jsPro/tests
In directory sc8-pr-cvs1:/tmp/cvs-serv2530/tests
Modified Files:
validator.html
Log Message:
QA: reordered object declarations for consistency across files
Index: validator.html
===================================================================
RCS file: /cvsroot/jspro/jsPro/tests/validator.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** validator.html 13 Oct 2003 15:31:42 -0000 1.1
--- validator.html 27 Oct 2003 07:48:01 -0000 1.2
***************
*** 33,39 ****
<script type="text/javascript" src="test.js"></script>
<script type="text/javascript">
- var oTest = new Test();
var oDebug = new Debug();
var oValidator = new Validator();
</script>
</head>
--- 33,39 ----
<script type="text/javascript" src="test.js"></script>
<script type="text/javascript">
var oDebug = new Debug();
var oValidator = new Validator();
+ var oTest = new Test();
</script>
</head>
|
|
From: <gat...@us...> - 2003-10-27 07:50:59
|
Update of /cvsroot/jspro/jsPro In directory sc8-pr-cvs1:/tmp/cvs-serv2791 Modified Files: CHANGES Log Message: QA: english language correction ;-) Index: CHANGES =================================================================== RCS file: /cvsroot/jspro/jsPro/CHANGES,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** CHANGES 13 Oct 2003 08:57:46 -0000 1.22 --- CHANGES 27 Oct 2003 07:49:19 -0000 1.23 *************** *** 1,4 **** =============================================================================== ! Whats new in R4? (Not Released Yet) =============================================================================== --- 1,4 ---- =============================================================================== ! What's new in R4? (Not Released Yet) =============================================================================== *************** *** 20,24 **** =============================================================================== ! Whats new in R3? (Released 01 Oct 2003) =============================================================================== --- 20,24 ---- =============================================================================== ! What's new in R3? (Released 01 Oct 2003) =============================================================================== *************** *** 105,109 **** =============================================================================== ! Whats new in R2? (Released 25 Aug 2003) =============================================================================== --- 105,109 ---- =============================================================================== ! What's new in R2? (Released 25 Aug 2003) =============================================================================== |
|
From: <gat...@us...> - 2003-10-27 07:48:57
|
Update of /cvsroot/jspro/jsPro/tests
In directory sc8-pr-cvs1:/tmp/cvs-serv2467/tests
Modified Files:
date.html
Log Message:
QA: reordered object declarations for consistency across files
Index: date.html
===================================================================
RCS file: /cvsroot/jspro/jsPro/tests/date.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** date.html 13 Oct 2003 15:31:42 -0000 1.1
--- date.html 27 Oct 2003 07:47:38 -0000 1.2
***************
*** 33,39 ****
<script type="text/javascript" src="test.js"></script>
<script type="text/javascript">
- var oTest = new Test();
var oDebug = new Debug();
var oDate = new Date();
</script>
</head>
--- 33,39 ----
<script type="text/javascript" src="test.js"></script>
<script type="text/javascript">
var oDebug = new Debug();
var oDate = new Date();
+ var oTest = new Test();
</script>
</head>
|
|
From: <gat...@us...> - 2003-10-27 07:48:26
|
Update of /cvsroot/jspro/jsPro/tests
In directory sc8-pr-cvs1:/tmp/cvs-serv2292/tests
Modified Files:
array.html
Log Message:
QA: reordered object declarations for consistency across files
Index: array.html
===================================================================
RCS file: /cvsroot/jspro/jsPro/tests/array.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** array.html 13 Oct 2003 15:31:42 -0000 1.1
--- array.html 27 Oct 2003 07:46:41 -0000 1.2
***************
*** 33,38 ****
<script type="text/javascript" src="test.js"></script>
<script type="text/javascript">
- var oTest = new Test();
var oDebug = new Debug();
var aSample = new Array(1, 2, 3, 4, 5, 'a', 'b', 'c', 'd', 'e');
aSample['hello'] = 'hesdllo';
--- 33,38 ----
<script type="text/javascript" src="test.js"></script>
<script type="text/javascript">
var oDebug = new Debug();
+ var oTest = new Test();
var aSample = new Array(1, 2, 3, 4, 5, 'a', 'b', 'c', 'd', 'e');
aSample['hello'] = 'hesdllo';
|