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