// Copyright (C) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
/*!
    \page qtqml-javascript-functionlist.html
    \title List of JavaScript Objects and Functions
    \brief A list of objects, functions, and properties supported in QML.

    This reference contains a list of objects, functions and
    properties supported by the \l{QJSEngine}{JavaScript engine} in Qt.
    For a detailed description, see the \l{ECMA-262} specification.

    \section1 The Global Object

    \section2 Value Properties

    \list
    \li NaN
    \li Infinity
    \li undefined
    \endlist

    \section2 Function Properties

    \list
    \li eval(x)
    \li parseInt(string, radix)
    \li parseFloat(string)
    \li isNaN(number)
    \li isFinite(number)
    \li decodeURI(encodedURI)
    \li decodeURIComponent(encodedURIComponent)
    \li encodeURI(uri)
    \li encodeURIComponent(uriComponent)
    \li escape(string)
    \li unescape(string)
    \endlist

    \section2 Constructor Properties

    \list
    \li Object
    \li Function
    \li Array
    \li ArrayBuffer
    \li String
    \li Boolean
    \li Number
    \li DataView
    \li Date
    \li Promise
    \li RegExp
    \li Map
    \li WeakMap
    \li Set
    \li WeakSet
    \li SharedArrayBuffer
    \li Symbol
    \li Error
    \li EvalError
    \li RangeError
    \li ReferenceError
    \li SyntaxError
    \li TypeError
    \li URIError
    \endlist

    \section2 Other Properties

    \list
    \li Atomics
    \li Math
    \li JSON
    \li Reflect
    \li Proxy
    \endlist

    \section1 The Object Object

    \section2 Object Constructor

    \section3 Function Properties

    \list
    \li getPrototypeOf(O)
    \li setPrototypeOf(O, P)
    \li getOwnPropertyDescriptor(O, P)
    \li getOwnPropertyDescriptors(O)
    \li getOwnPropertyNames(O)
    \li getOwnPropertySymbols(O)
    \li assign(O [, Properties])
    \li create(O [, Properties])
    \li defineProperty(O, P, Attributes)
    \li defineProperties(O, Properties)
    \li entries(O)
    \li is(V1, V2)
    \li keys(O)
    \li values(O)
    \li seal(O)
    \li isSealed(O)
    \li freeze(O)
    \li isFrozen(O)
    \li preventExtensions(O)
    \li isExtensible(O)
    \endlist

    \section2 Object Prototype

    \section3 Function Properties

    \list
    \li toString()
    \li toLocaleString()
    \li valueOf()
    \li hasOwnProperty(V)
    \li isPrototypeOf(V)
    \li propertyIsEnumerable(V)
    \li __defineGetter__(P, F)
    \li __defineSetter__(P, F)
    \endlist

    \section1 Function Objects

    \section2 Function Prototype

    \section3 Function Properties

    \list
    \li toString()
    \li apply(thisArg, argArray)
    \li call(thisArg [, arg1 [, arg2, ...]])
    \li bind((thisArg [, arg1 [, arg2, …]])
    \li [Symbol.hasInstance](O)
    \endlist

    \section1 Array Objects

    \section2 Array Prototype Object

    \section3 Function Properties

    \list
    \li toString()
    \li toLocaleString()
    \li concat([item1 [, item2 [, ...]]])
    \li copyWithin([item1 [, item2 [, ...]]])
    \li entries()
    \li fill(item [, index1 [, index2]])
    \li join(separator)
    \li find(callbackfn [, thisArg]) // ECMAScript 6: Added in Qt 5.9
    \li findIndex(callbackfn [, thisArg]) // ECMAScript 6: Added in Qt 5.9
    \li includes(item)
    \li keys()
    \li pop()
    \li push([item1 [, item2 [, ...]]])
    \li reverse()
    \li shift()
    \li slice(start, end)
    \li sort(comparefn)
    \li splice(start, deleteCount[, item1 [, item2 [, ...]]])
    \li unshift([item1 [, item2 [, ...]]])
    \li indexOf(searchElement [, fromIndex])
    \li lastIndexOf(searchElement [, fromIndex])
    \li every(callbackfn [, thisArg])
    \li some(callbackfn [, thisArg])
    \li forEach(callbackfn [, thisArg])
    \li map(callbackfn [, thisArg])
    \li filter(callbackfn [, thisArg])
    \li reduce(callbackfn [, initialValue])
    \li reduceRight(callbackfn [, initialValue])
    \li values()
    \li [Symbol.iterator]()
    \endlist

    \section1 String Objects

    \section2 String Prototype Object

    \section3 Function Properties

    \list
    \li toString()
    \li valueOf()
    \li charAt(pos)
    \li charCodeAt(pos)
    \li codePointAt(pos)
    \li concat([string1 [, string2 [, ...]]])
    \li endsWith(searchString [, endPosition ]) // ECMAScript 6: Added in Qt 5.8
    \li includes(searchString [, position ]) // ECMAScript 6: Added in 5.8
    \li indexOf(searchString ,position)
    \li lastIndexOf(searchString, position)
    \li localeCompare(that)
    \li match(regexp)
    \li normalize()
    \li padEnd(length [, string])
    \li padStart(length [, string])
    \li repeat(count) // ECMAScript 6: Added in Qt 5.9
    \li replace(searchValue, replaceValue)
    \li search(regexp)
    \li slice(start, end)
    \li split(separator, limit)
    \li startsWith(searchString [, position ]) // ECMAScript 6: Added in Qt 5.8
    \li substr(start, length)
    \li substring(start, end)
    \li toLowerCase()
    \li toLocaleLowerCase()
    \li toUpperCase()
    \li toLocaleUpperCase()
    \li trim()
    \li [Symbol.iterator]()
    \endlist

    Additionally, the QML engine adds the following functions to the \c String prototype:
    \list
    \li \l {string}{string::arg()}
    \endlist


    \section1 Boolean Objects

    \section2 Boolean Prototype Object

    \section3 Function Properties

    \list
    \li toString()
    \li valueOf()
    \endlist

    \section1 Number Objects

    \section2 Number Prototype Object

    \section3 Function Properties

    \list
    \li toString(radix)
    \li toLocaleString()
    \li valueOf()
    \li toFixed(fractionDigits)
    \li toExponential(fractionDigits)
    \li toPrecision(precision)
    \endlist

    Additionally, the QML engine adds the following functions to the \l Number prototype:
    \list
    \li \l {Number::fromLocaleString}{fromLocaleString(locale, number)}
    \li \l {Number::toLocaleCurrencyString}{toLocaleCurrencyString(locale, symbol)}
    \li \l {Number::toLocaleString}{toLocaleString(locale, format, precision)}
    \endlist

    \section2 The Number Object

    \section3 Value Properties

    \list
    \li NaN
    \li NEGATIVE_INFINITY
    \li POSITIVE_INFINITY
    \li MAX_VALUE
    \li MIN_VALUE
    \li EPSILON // ECMAScript 6: Added in Qt 5.8
    \li MAX_SAFE_INTEGER
    \li MIN_SAFE_INTEGER
    \endlist

    \section3 Function Properties

    \list
    \li isFinite(x) // ECMAScript 6: Added in Qt 5.8
    \li isInteger(x)
    \li isSafeInteger(x)
    \li isNaN(x) // ECMAScript 6: Added in Qt 5.8
    \endlist

    \section1 The Math Object

    \section2 Value Properties

    \list
    \li E
    \li LN10
    \li LN2
    \li LOG2E
    \li LOG10E
    \li PI
    \li SQRT1_2
    \li SQRT2
    \endlist

    \section2 Function Properties

    \list
    \li abs(x)
    \li acos(x)
    \li acosh(x)
    \li asin(x)
    \li asinh(x)
    \li atan(x)
    \li atanh(x)
    \li atan2(y, x)
    \li cbrt(x)
    \li ceil(x)
    \li clz32(x)
    \li cos(x)
    \li cosh(x)
    \li exp(x)
    \li expm1(x)
    \li floor(x)
    \li fround(x)
    \li hypot(x, y)
    \li imul(x, y)
    \li log(x)
    \li log10(x)
    \li log1p(x)
    \li log2(x)
    \li max([value1 [, value2 [, ...]]])
    \li min([value1 [, value2 [, ...]]])
    \li pow(x, y)
    \li random()
    \li round(x)
    \li sign(x) // ECMAScript 6: Added in Qt 5.8
    \li sin(x)
    \li sinh(x)
    \li sqrt(x)
    \li tan(x)
    \li tanh(x)
    \li trunc(x)
    \endlist

    \section1 Date Objects

    \section2 Date Prototype Object

    \section3 Function Properties

    \list
    \li toString()
    \li toDateString()
    \li toTimeString()
    \li toLocaleString()
    \li toLocaleDateString()
    \li toLocaleTimeString()
    \li valueOf()
    \li getTime()
    \li getFullYear()
    \li getUTCFullYear()
    \li getMonth()
    \li getUTCMonth()
    \li getDate()
    \li getUTCDate()
    \li getDay()
    \li getUTCDay()
    \li getHours()
    \li getUTCHours()
    \li getMinutes()
    \li getUTCMinutes()
    \li getSeconds()
    \li getUTCSeconds()
    \li getMilliseconds()
    \li getUTCMilliseconds()
    \li getTimeZoneOffset()
    \li setTime(time)
    \li setMilliseconds(ms)
    \li setUTCMilliseconds(ms)
    \li setSeconds(sec [, ms])
    \li setUTCSeconds(sec [, ms])
    \li setMinutes(min [, sec [, ms]])
    \li setUTCMinutes(min [, sec [, ms]])
    \li setHours(hour [, min [, sec [, ms]]])
    \li setUTCHours(hour [, min [, sec [, ms]]])
    \li setDate(date)
    \li setUTCDate(date)
    \li setMonth(month [, date])
    \li setUTCMonth(month [, date])
    \li setYear(year)
    \li setFullYear(year [, month [, date]])
    \li setUTCFullYear(year [, month [, date]])
    \li toUTCString()
    \li toGMTString()
    \li toISOString()
    \li toJSON()
    \li [Symbol.toPrimitive](hint)
    \endlist

    Additionally, the QML engine adds the following functions to the \l Date prototype:
    \list
    \li \l {Date::timeZoneUpdated}{timeZoneUpdated()}
    \li \l {Date::toLocaleDateString}{toLocaleDateString(locale, format)}
    \li \l {Date::toLocaleString}{toLocaleString(locale, format)}
    \li \l {Date::toLocaleTimeString}{toLocaleTimeString(locale, format)}
    \endlist

    \section1 RegExp Objects

    \section2 RegExp Prototype Object

    \section3 Function Properties

    \list
    \li exec(string)
    \li test(string)
    \li toString()
    \endlist

    \section1 Error Objects

    \section2 Error Prototype Object

    \section3 Value Properties

    \list
    \li name
    \li message
    \endlist

    \section3 Function Properties

    \list
    \li toString()
    \endlist

    \section1 The JSON Object

    \section2 Function Properties

    \list
    \li parse(text [, reviver])
    \li stringify(value [, replacer [, space]])
    \endlist

*/
