| 1 | /**************************************************************************** | 
|---|
| 2 | ** | 
|---|
| 3 | ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). | 
|---|
| 4 | ** Contact: Qt Software Information (qt-info@nokia.com) | 
|---|
| 5 | ** | 
|---|
| 6 | ** This file is part of the documentation of the Qt Toolkit. | 
|---|
| 7 | ** | 
|---|
| 8 | ** $QT_BEGIN_LICENSE:LGPL$ | 
|---|
| 9 | ** Commercial Usage | 
|---|
| 10 | ** Licensees holding valid Qt Commercial licenses may use this file in | 
|---|
| 11 | ** accordance with the Qt Commercial License Agreement provided with the | 
|---|
| 12 | ** Software or, alternatively, in accordance with the terms contained in | 
|---|
| 13 | ** a written agreement between you and Nokia. | 
|---|
| 14 | ** | 
|---|
| 15 | ** GNU Lesser General Public License Usage | 
|---|
| 16 | ** Alternatively, this file may be used under the terms of the GNU Lesser | 
|---|
| 17 | ** General Public License version 2.1 as published by the Free Software | 
|---|
| 18 | ** Foundation and appearing in the file LICENSE.LGPL included in the | 
|---|
| 19 | ** packaging of this file.  Please review the following information to | 
|---|
| 20 | ** ensure the GNU Lesser General Public License version 2.1 requirements | 
|---|
| 21 | ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. | 
|---|
| 22 | ** | 
|---|
| 23 | ** In addition, as a special exception, Nokia gives you certain | 
|---|
| 24 | ** additional rights. These rights are described in the Nokia Qt LGPL | 
|---|
| 25 | ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this | 
|---|
| 26 | ** package. | 
|---|
| 27 | ** | 
|---|
| 28 | ** GNU General Public License Usage | 
|---|
| 29 | ** Alternatively, this file may be used under the terms of the GNU | 
|---|
| 30 | ** General Public License version 3.0 as published by the Free Software | 
|---|
| 31 | ** Foundation and appearing in the file LICENSE.GPL included in the | 
|---|
| 32 | ** packaging of this file.  Please review the following information to | 
|---|
| 33 | ** ensure the GNU General Public License version 3.0 requirements will be | 
|---|
| 34 | ** met: http://www.gnu.org/copyleft/gpl.html. | 
|---|
| 35 | ** | 
|---|
| 36 | ** If you are unsure which license is appropriate for your use, please | 
|---|
| 37 | ** contact the sales department at qt-sales@nokia.com. | 
|---|
| 38 | ** $QT_END_LICENSE$ | 
|---|
| 39 | ** | 
|---|
| 40 | ****************************************************************************/ | 
|---|
| 41 |  | 
|---|
| 42 | /*! | 
|---|
| 43 | \page ecmascript.html | 
|---|
| 44 | \title ECMAScript Reference | 
|---|
| 45 | \ingroup scripting | 
|---|
| 46 | \brief A list of objects, functions and properties supported by QtScript. | 
|---|
| 47 |  | 
|---|
| 48 | This reference contains a list of objects, functions and | 
|---|
| 49 | properties supported by QtScript. | 
|---|
| 50 |  | 
|---|
| 51 | \tableofcontents | 
|---|
| 52 |  | 
|---|
| 53 | \section1 The Global Object | 
|---|
| 54 |  | 
|---|
| 55 | \section2 Value Properties | 
|---|
| 56 |  | 
|---|
| 57 | \list | 
|---|
| 58 | \o NaN | 
|---|
| 59 | \o Infinity | 
|---|
| 60 | \o undefined | 
|---|
| 61 | \o Math | 
|---|
| 62 | \endlist | 
|---|
| 63 |  | 
|---|
| 64 | \section2 Function Properties | 
|---|
| 65 |  | 
|---|
| 66 | \list | 
|---|
| 67 | \o eval(x) | 
|---|
| 68 | \o parseInt(string, radix) | 
|---|
| 69 | \o parseFloat(string) | 
|---|
| 70 | \o isNaN(number) | 
|---|
| 71 | \o isFinite(number) | 
|---|
| 72 | \o decodeURI(encodedURI) | 
|---|
| 73 | \o decodeURIComponent(encodedURIComponent) | 
|---|
| 74 | \o encodeURI(uri) | 
|---|
| 75 | \o encodeURIComponent(uriComponent) | 
|---|
| 76 | \endlist | 
|---|
| 77 |  | 
|---|
| 78 | \section2 Constructor Properties | 
|---|
| 79 |  | 
|---|
| 80 | \list | 
|---|
| 81 | \o Object | 
|---|
| 82 | \o Function | 
|---|
| 83 | \o Array | 
|---|
| 84 | \o String | 
|---|
| 85 | \o Boolean | 
|---|
| 86 | \o Number | 
|---|
| 87 | \o Date | 
|---|
| 88 | \o RegExp | 
|---|
| 89 | \o Error | 
|---|
| 90 | \o EvalError | 
|---|
| 91 | \o RangeError | 
|---|
| 92 | \o ReferenceError | 
|---|
| 93 | \o SyntaxError | 
|---|
| 94 | \o TypeError | 
|---|
| 95 | \o URIError | 
|---|
| 96 | \endlist | 
|---|
| 97 |  | 
|---|
| 98 | \section1 Object Objects | 
|---|
| 99 |  | 
|---|
| 100 | \section2 Object Prototype Object | 
|---|
| 101 |  | 
|---|
| 102 | \list | 
|---|
| 103 | \o toString() | 
|---|
| 104 | \o toLocaleString() | 
|---|
| 105 | \o valueOf() | 
|---|
| 106 | \o hasOwnProperty(V) | 
|---|
| 107 | \o isPrototypeOf(V) | 
|---|
| 108 | \o propertyIsEnumerable(V) | 
|---|
| 109 | \endlist | 
|---|
| 110 |  | 
|---|
| 111 | \section1 Function Objects | 
|---|
| 112 |  | 
|---|
| 113 | \section2 Function Prototype Object | 
|---|
| 114 |  | 
|---|
| 115 | \section3 Function Properties | 
|---|
| 116 |  | 
|---|
| 117 | \list | 
|---|
| 118 | \o toString() | 
|---|
| 119 | \o apply(thisArg, argArray) | 
|---|
| 120 | \o call(thisArg [, arg1 [, arg2, ...]]) | 
|---|
| 121 | \endlist | 
|---|
| 122 |  | 
|---|
| 123 | \section1 Array Objects | 
|---|
| 124 |  | 
|---|
| 125 | \section2 Array Prototype Object | 
|---|
| 126 |  | 
|---|
| 127 | \section3 Function Properties | 
|---|
| 128 |  | 
|---|
| 129 | \list | 
|---|
| 130 | \o toString() | 
|---|
| 131 | \o toLocaleString() | 
|---|
| 132 | \o concat([item1 [, item2 [, ...]]]) | 
|---|
| 133 | \o join(separator) | 
|---|
| 134 | \o pop() | 
|---|
| 135 | \o push([item1 [, item2 [, ...]]]) | 
|---|
| 136 | \o reverse() | 
|---|
| 137 | \o shift() | 
|---|
| 138 | \o slice(start, end) | 
|---|
| 139 | \o sort(comparefn) | 
|---|
| 140 | \o splice(start, deleteCount[, item1 [, item2 [, ...]]]) | 
|---|
| 141 | \o unshift([item1 [, item2 [, ...]]]) | 
|---|
| 142 | \endlist | 
|---|
| 143 |  | 
|---|
| 144 | \section1 String Objects | 
|---|
| 145 |  | 
|---|
| 146 | \section2 String Prototype Object | 
|---|
| 147 |  | 
|---|
| 148 | \section3 Function Properties | 
|---|
| 149 |  | 
|---|
| 150 | \list | 
|---|
| 151 | \o toString() | 
|---|
| 152 | \o valueOf() | 
|---|
| 153 | \o charAt(pos) | 
|---|
| 154 | \o charCodeAt(pos) | 
|---|
| 155 | \o concat([string1 [, string2 [, ...]]]) | 
|---|
| 156 | \o indexOf(searchString ,position) | 
|---|
| 157 | \o lastIndexOf(searchString, position) | 
|---|
| 158 | \o localeCompare(that) | 
|---|
| 159 | \o match(regexp) | 
|---|
| 160 | \o replace(searchValue, replaceValue) | 
|---|
| 161 | \o search(regexp) | 
|---|
| 162 | \o slice(start, end) | 
|---|
| 163 | \o split(separator, limit) | 
|---|
| 164 | \o substring(start, end) | 
|---|
| 165 | \o toLowerCase() | 
|---|
| 166 | \o toLocaleLowerCase() | 
|---|
| 167 | \o toUpperCase() | 
|---|
| 168 | \o toLocaleUpperCase() | 
|---|
| 169 | \endlist | 
|---|
| 170 |  | 
|---|
| 171 | \section1 Boolean Objects | 
|---|
| 172 |  | 
|---|
| 173 | \section2 Boolean Prototype Object | 
|---|
| 174 |  | 
|---|
| 175 | \section3 Function Properties | 
|---|
| 176 |  | 
|---|
| 177 | \list | 
|---|
| 178 | \o toString() | 
|---|
| 179 | \o valueOf() | 
|---|
| 180 | \endlist | 
|---|
| 181 |  | 
|---|
| 182 | \section1 Number Objects | 
|---|
| 183 |  | 
|---|
| 184 | \section2 Number Prototype Object | 
|---|
| 185 |  | 
|---|
| 186 | \section3 Function Properties | 
|---|
| 187 |  | 
|---|
| 188 | \list | 
|---|
| 189 | \o toString(radix) | 
|---|
| 190 | \o toLocaleString() | 
|---|
| 191 | \o toFixed(fractionDigits) | 
|---|
| 192 | \o toExponential(fractionDigits) | 
|---|
| 193 | \o toPrecision(precision) | 
|---|
| 194 | \endlist | 
|---|
| 195 |  | 
|---|
| 196 | \section1 The Math Object | 
|---|
| 197 |  | 
|---|
| 198 | \section2 Value Properties | 
|---|
| 199 |  | 
|---|
| 200 | \list | 
|---|
| 201 | \o E | 
|---|
| 202 | \o LN10 | 
|---|
| 203 | \o LN2 | 
|---|
| 204 | \o LOG2E | 
|---|
| 205 | \o LOG10E | 
|---|
| 206 | \o PI | 
|---|
| 207 | \o SQRT1_2 | 
|---|
| 208 | \o SQRT2 | 
|---|
| 209 | \endlist | 
|---|
| 210 |  | 
|---|
| 211 | \section2 Function Properties | 
|---|
| 212 |  | 
|---|
| 213 | \list | 
|---|
| 214 | \o abs(x) | 
|---|
| 215 | \o acos(x) | 
|---|
| 216 | \o asin(x) | 
|---|
| 217 | \o atan(x) | 
|---|
| 218 | \o atan2(y, x) | 
|---|
| 219 | \o ceil(x) | 
|---|
| 220 | \o cos(x) | 
|---|
| 221 | \o exp(x) | 
|---|
| 222 | \o floor(x) | 
|---|
| 223 | \o log(x) | 
|---|
| 224 | \o max([value1 [, value2 [, ...]]]) | 
|---|
| 225 | \o min([value1 [, value2 [, ...]]]) | 
|---|
| 226 | \o pow(x, y) | 
|---|
| 227 | \o random() | 
|---|
| 228 | \o round(x) | 
|---|
| 229 | \o sin(x) | 
|---|
| 230 | \o sqrt(x) | 
|---|
| 231 | \o tan(x) | 
|---|
| 232 | \endlist | 
|---|
| 233 |  | 
|---|
| 234 | \section1 Date Objects | 
|---|
| 235 |  | 
|---|
| 236 | \section2 Date Prototype Object | 
|---|
| 237 |  | 
|---|
| 238 | \section3 Function Properties | 
|---|
| 239 |  | 
|---|
| 240 | \list | 
|---|
| 241 | \o toString() | 
|---|
| 242 | \o toDateString() | 
|---|
| 243 | \o toTimeString() | 
|---|
| 244 | \o toLocaleString() | 
|---|
| 245 | \o toLocaleDateString() | 
|---|
| 246 | \o toLocaleTimeString() | 
|---|
| 247 | \o valueOf() | 
|---|
| 248 | \o getTime() | 
|---|
| 249 | \o getFullYear() | 
|---|
| 250 | \o getUTCFullYear() | 
|---|
| 251 | \o getMonth() | 
|---|
| 252 | \o getUTCMonth() | 
|---|
| 253 | \o getDate() | 
|---|
| 254 | \o getUTCDate() | 
|---|
| 255 | \o getDay() | 
|---|
| 256 | \o getUTCDay() | 
|---|
| 257 | \o getHours() | 
|---|
| 258 | \o getUTCHours() | 
|---|
| 259 | \o getMinutes() | 
|---|
| 260 | \o getUTCMinutes() | 
|---|
| 261 | \o getSeconds() | 
|---|
| 262 | \o getUTCSeconds() | 
|---|
| 263 | \o getMilliseconds() | 
|---|
| 264 | \o getUTCMilliseconds() | 
|---|
| 265 | \o getTimeZoneOffset() | 
|---|
| 266 | \o setTime(time) | 
|---|
| 267 | \o setMilliseconds(ms) | 
|---|
| 268 | \o setUTCMilliseconds(ms) | 
|---|
| 269 | \o setSeconds(sec [, ms]) | 
|---|
| 270 | \o setUTCSeconds(sec [, ms]) | 
|---|
| 271 | \o setMinutes(min [, sec [, ms]]) | 
|---|
| 272 | \o setUTCMinutes(min [, sec [, ms]]) | 
|---|
| 273 | \o setHours(hour [, min [, sec [, ms]]]) | 
|---|
| 274 | \o setUTCHours(hour [, min [, sec [, ms]]]) | 
|---|
| 275 | \o setDate(date) | 
|---|
| 276 | \o setUTCDate(date) | 
|---|
| 277 | \o setMonth(month [, date]) | 
|---|
| 278 | \o setUTCMonth(month [, date]) | 
|---|
| 279 | \o setFullYear(year [, month [, date]]) | 
|---|
| 280 | \o setUTCFullYear(year [, month [, date]]) | 
|---|
| 281 | \o toUTCString() | 
|---|
| 282 | \endlist | 
|---|
| 283 |  | 
|---|
| 284 | \section1 RegExp Objects | 
|---|
| 285 |  | 
|---|
| 286 | \section2 RegExp Prototype Object | 
|---|
| 287 |  | 
|---|
| 288 | \section3 Function Properties | 
|---|
| 289 |  | 
|---|
| 290 | \list | 
|---|
| 291 | \o exec(string) | 
|---|
| 292 | \o test(string) | 
|---|
| 293 | \o toString() | 
|---|
| 294 | \endlist | 
|---|
| 295 |  | 
|---|
| 296 | \section1 Error Objects | 
|---|
| 297 |  | 
|---|
| 298 | \section2 Error Prototype Object | 
|---|
| 299 |  | 
|---|
| 300 | \section3 Value Properties | 
|---|
| 301 |  | 
|---|
| 302 | \list | 
|---|
| 303 | \o name | 
|---|
| 304 | \o message | 
|---|
| 305 | \endlist | 
|---|
| 306 |  | 
|---|
| 307 | \section3 Function Properties | 
|---|
| 308 |  | 
|---|
| 309 | \list | 
|---|
| 310 | \o toString() | 
|---|
| 311 | \endlist | 
|---|
| 312 |  | 
|---|
| 313 | */ | 
|---|