1 | /****************************************************************************
|
---|
2 | **
|
---|
3 | ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
|
---|
4 | ** All rights reserved.
|
---|
5 | ** Contact: Nokia Corporation ([email protected])
|
---|
6 | **
|
---|
7 | ** This file is part of the documentation of the Qt Toolkit.
|
---|
8 | **
|
---|
9 | ** $QT_BEGIN_LICENSE:FDL$
|
---|
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 a
|
---|
14 | ** written agreement between you and Nokia.
|
---|
15 | **
|
---|
16 | ** GNU Free Documentation License
|
---|
17 | ** Alternatively, this file may be used under the terms of the GNU Free
|
---|
18 | ** Documentation License version 1.3 as published by the Free Software
|
---|
19 | ** Foundation and appearing in the file included in the packaging of this
|
---|
20 | ** file.
|
---|
21 | **
|
---|
22 | ** If you have questions regarding the use of this file, please contact
|
---|
23 | ** Nokia at [email protected].
|
---|
24 | ** $QT_END_LICENSE$
|
---|
25 | **
|
---|
26 | ****************************************************************************/
|
---|
27 |
|
---|
28 | /*!
|
---|
29 | \page ecmascript.html
|
---|
30 | \title ECMAScript Reference
|
---|
31 | \brief A list of objects, functions and properties supported by QtScript.
|
---|
32 |
|
---|
33 | This reference contains a list of built-in objects, functions and
|
---|
34 | properties supported by QtScript. For a detailed description, see
|
---|
35 | the \l{ECMA-262} specification.
|
---|
36 |
|
---|
37 | \tableofcontents
|
---|
38 |
|
---|
39 | \section1 The Global Object
|
---|
40 |
|
---|
41 | \section2 Value Properties
|
---|
42 |
|
---|
43 | \list
|
---|
44 | \o NaN
|
---|
45 | \o Infinity
|
---|
46 | \o undefined
|
---|
47 | \endlist
|
---|
48 |
|
---|
49 | \section2 Function Properties
|
---|
50 |
|
---|
51 | \list
|
---|
52 | \o eval(x)
|
---|
53 | \o parseInt(string, radix)
|
---|
54 | \o parseFloat(string)
|
---|
55 | \o isNaN(number)
|
---|
56 | \o isFinite(number)
|
---|
57 | \o decodeURI(encodedURI)
|
---|
58 | \o decodeURIComponent(encodedURIComponent)
|
---|
59 | \o encodeURI(uri)
|
---|
60 | \o encodeURIComponent(uriComponent)
|
---|
61 | \endlist
|
---|
62 |
|
---|
63 | \section2 Constructor Properties
|
---|
64 |
|
---|
65 | \list
|
---|
66 | \o Object
|
---|
67 | \o Function
|
---|
68 | \o Array
|
---|
69 | \o String
|
---|
70 | \o Boolean
|
---|
71 | \o Number
|
---|
72 | \o Date
|
---|
73 | \o RegExp
|
---|
74 | \o Error
|
---|
75 | \o EvalError
|
---|
76 | \o RangeError
|
---|
77 | \o ReferenceError
|
---|
78 | \o SyntaxError
|
---|
79 | \o TypeError
|
---|
80 | \o URIError
|
---|
81 | \endlist
|
---|
82 |
|
---|
83 | \section2 Other Properties
|
---|
84 |
|
---|
85 | \list
|
---|
86 | \o Math
|
---|
87 | \o JSON
|
---|
88 | \endlist
|
---|
89 |
|
---|
90 | \section1 Object Objects
|
---|
91 |
|
---|
92 | \section2 Object Constructor
|
---|
93 |
|
---|
94 | \section3 Function Properties
|
---|
95 |
|
---|
96 | \list
|
---|
97 | \o getPrototypeOf(O)
|
---|
98 | \o getOwnPropertyDescriptor(O, P)
|
---|
99 | \o getOwnPropertyNames(O)
|
---|
100 | \o create(O [, Properties])
|
---|
101 | \o defineProperty(O, P, Attributes)
|
---|
102 | \o defineProperties(O, Properties)
|
---|
103 | \o keys(O)
|
---|
104 | \endlist
|
---|
105 |
|
---|
106 | \section2 Object Prototype Object
|
---|
107 |
|
---|
108 | \section3 Function Properties
|
---|
109 |
|
---|
110 | \list
|
---|
111 | \o toString()
|
---|
112 | \o toLocaleString()
|
---|
113 | \o valueOf()
|
---|
114 | \o hasOwnProperty(V)
|
---|
115 | \o isPrototypeOf(V)
|
---|
116 | \o propertyIsEnumerable(V)
|
---|
117 | \endlist
|
---|
118 |
|
---|
119 | \section1 Function Objects
|
---|
120 |
|
---|
121 | \section2 Function Prototype Object
|
---|
122 |
|
---|
123 | \section3 Function Properties
|
---|
124 |
|
---|
125 | \list
|
---|
126 | \o toString()
|
---|
127 | \o apply(thisArg, argArray)
|
---|
128 | \o call(thisArg [, arg1 [, arg2, ...]])
|
---|
129 | \endlist
|
---|
130 |
|
---|
131 | \section1 Array Objects
|
---|
132 |
|
---|
133 | \section2 Array Prototype Object
|
---|
134 |
|
---|
135 | \section3 Function Properties
|
---|
136 |
|
---|
137 | \list
|
---|
138 | \o toString()
|
---|
139 | \o toLocaleString()
|
---|
140 | \o concat([item1 [, item2 [, ...]]])
|
---|
141 | \o join(separator)
|
---|
142 | \o pop()
|
---|
143 | \o push([item1 [, item2 [, ...]]])
|
---|
144 | \o reverse()
|
---|
145 | \o shift()
|
---|
146 | \o slice(start, end)
|
---|
147 | \o sort(comparefn)
|
---|
148 | \o splice(start, deleteCount[, item1 [, item2 [, ...]]])
|
---|
149 | \o unshift([item1 [, item2 [, ...]]])
|
---|
150 | \o indexOf(searchElement [, fromIndex])
|
---|
151 | \o lastIndexOf(searchElement [, fromIndex])
|
---|
152 | \o every(callbackfn [, thisArg])
|
---|
153 | \o some(callbackfn [, thisArg])
|
---|
154 | \o forEach(callbackfn [, thisArg])
|
---|
155 | \o map(callbackfn [, thisArg])
|
---|
156 | \o filter(callbackfn [, thisArg])
|
---|
157 | \o reduce(callbackfn [, initialValue])
|
---|
158 | \o reduceRight(callbackfn [, initialValue])
|
---|
159 | \endlist
|
---|
160 |
|
---|
161 | \section1 String Objects
|
---|
162 |
|
---|
163 | \section2 String Prototype Object
|
---|
164 |
|
---|
165 | \section3 Function Properties
|
---|
166 |
|
---|
167 | \list
|
---|
168 | \o toString()
|
---|
169 | \o valueOf()
|
---|
170 | \o charAt(pos)
|
---|
171 | \o charCodeAt(pos)
|
---|
172 | \o concat([string1 [, string2 [, ...]]])
|
---|
173 | \o indexOf(searchString ,position)
|
---|
174 | \o lastIndexOf(searchString, position)
|
---|
175 | \o localeCompare(that)
|
---|
176 | \o match(regexp)
|
---|
177 | \o replace(searchValue, replaceValue)
|
---|
178 | \o search(regexp)
|
---|
179 | \o slice(start, end)
|
---|
180 | \o split(separator, limit)
|
---|
181 | \o substring(start, end)
|
---|
|
---|