diff --git a/api/@ohos.process.d.ts b/api/@ohos.process.d.ts index 575b00e27cf81f677a7591a2fbc061971c257af2..02b7e123eadc87d0134c66a73260165ee024263e 100644 --- a/api/@ohos.process.d.ts +++ b/api/@ohos.process.d.ts @@ -17,8 +17,7 @@ * The process is mainly used to obtain the relevant ID of the process, obtain and modify * the working directory of the process, exit and close the process. * @since 7 -* @sysCap SystemCapability.CCRuntime -* @devices phone, tablet, tv, wearable, car +* @syscap SystemCapability.Utils.Lang * @import import url from '@ohos.process'; */ @@ -28,7 +27,7 @@ declare namespace process { /** * return pid is the pid of the current process * @since 7 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @systemapi Hide this for inner system use * @return return the pid of the current process. */ @@ -36,7 +35,7 @@ declare namespace process { /** * return ppid is the pid of the current child process * @since 7 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @systemapi Hide this for inner system use * @return return the pid of the current child process. */ @@ -45,7 +44,7 @@ declare namespace process { /** * return exitCode is the exit code of the current child process * @since 7 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @systemapi Hide this for inner system use * @return return the exit code of the current child process. */ @@ -54,7 +53,7 @@ declare namespace process { /** * return boolean is whether the current process signal is sent successfully * @since 7 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @systemapi Hide this for inner system use * @return return whether the current process signal is sent successfully. */ @@ -63,7 +62,7 @@ declare namespace process { /** * return 'number' is the target process exit code * @since 7 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @systemapi Hide this for inner system use * @return return the target process exit code. */ @@ -72,7 +71,7 @@ declare namespace process { /** * return it as 'Uint8Array' of the stdout until EOF * @since 7 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @systemapi Hide this for inner system use * @return return subprocess standard outpute. */ @@ -81,7 +80,7 @@ declare namespace process { /** * return it as 'Uint8Array of the stderr until EOF * @since 7 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @systemapi Hide this for inner system use * @return return subprocess standard error output. */ @@ -90,7 +89,7 @@ declare namespace process { /** * close the target process * @since 7 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @systemapi Hide this for inner system use */ close(): void; @@ -98,7 +97,7 @@ declare namespace process { /** * send a signal to process * @since 7 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @systemapi Hide this for inner system use * @param signal number or string represents the signal sent. */ @@ -108,7 +107,7 @@ declare namespace process { /** * returns the numeric valid group ID of the process * @since 7 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @systemapi Hide this for inner system use * @return return the numeric valid group ID of the process. */ @@ -117,7 +116,7 @@ declare namespace process { /** * return the numeric valid user identity of the process * @since 7 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @systemapi Hide this for inner system use * @return return the numeric valid user identity of the process. */ @@ -126,7 +125,7 @@ declare namespace process { /** * returns the numeric group id of the process * @since 7 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @systemapi Hide this for inner system use * @return return the numeric group if of the process. */ @@ -135,7 +134,7 @@ declare namespace process { /** * returns the digital user id of the process * @since 7 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @return return the digital user id of the process. */ const uid: number; @@ -143,7 +142,7 @@ declare namespace process { /** * return an array with supplementary group id * @since 7 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @systemapi Hide this for inner system use * @return return an array with supplementary group id. */ @@ -152,7 +151,7 @@ declare namespace process { /** * return pid is The pid of the current process * @since 7 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @return return The pid of the current process. */ const pid: number; @@ -160,7 +159,7 @@ declare namespace process { /** * return ppid is The pid of the current child process * @since 7 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @systemapi Hide this for inner system use * @return return The pid of the current child process. */ @@ -169,7 +168,7 @@ declare namespace process { /** * Returns the tid of the current thread. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @return return the tid of the current thread. */ const tid: number; @@ -177,7 +176,7 @@ declare namespace process { /** * Returns a boolean whether the process is isolated. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @return return boolean whether the process is isolated. */ function isIsolatedProcess(): boolean; @@ -185,7 +184,7 @@ declare namespace process { /** * Returns a boolean whether the specified uid belongs to a particular application. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param v An id. * @return return a boolean whether the specified uid belongs to a particular application. */ @@ -194,7 +193,7 @@ declare namespace process { /** * Returns a boolean whether the process is running in a 64-bit environment. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @return return a boolean whether the process is running in a 64-bit environment. */ function is64Bit(): boolean; @@ -202,7 +201,7 @@ declare namespace process { /** * Returns the uid based on the specified user name. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param v Process name. * @return return the uid based on the specified user name. */ @@ -211,7 +210,7 @@ declare namespace process { /** * Returns the thread priority based on the specified tid. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param v The tid of the process. * @return Return the thread priority based on the specified tid. */ @@ -220,23 +219,15 @@ declare namespace process { /** * Returns the elapsed real time (in milliseconds) taken from the start of the system to the start of the process. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @return Return the start of the system to the start of the process. */ function getStartRealtime(): number; - /** - * Returns cpu cores available for the current process on a multi-core device. - * @since 8 - * @sysCap SystemCapability.CCRuntime - * @return Return cpu cores available for the current process on a multi-core device. - */ - function getAvailableCores(): number[]; - /** * Returns the cpu time (in milliseconds) from the time when the process starts to the current time. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @return Return the cpu time (in milliseconds) from the time when the process starts to the current time. */ function getPastCpuTime(): number; @@ -244,7 +235,7 @@ declare namespace process { /** * Returns the system configuration at runtime. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param name Parameters defined by the system configuration. * @return Return the system configuration at runtime. */ @@ -253,7 +244,7 @@ declare namespace process { /** * Returns the system value for environment variables. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param name Parameters defined by the system environment variables. * @Returns the system value for environment variables. */ @@ -263,7 +254,7 @@ declare namespace process { /** * Return a child process object and spawns a new ChildProcess to run the command * @since 7 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param command string of the shell commands executed by the child process. * @param options This is an object. The object contains three parameters. Timeout is the running time of the child * process, killSignal is the signal sent when the child process reaches timeout, and maxBuffer is the size of the @@ -277,14 +268,14 @@ declare namespace process { /** * Abort current process * @since 7 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang */ function abort(): void; /** * Register for an event * @since 7 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param type Indicates the type of event registered. * @systemapi Hide this for inner system use * @param listener Represents the registered event function @@ -294,7 +285,7 @@ declare namespace process { /** * Remove registered event * @since 7 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param type Remove the type of registered event. * @systemapi Hide this for inner system use * @return Return removed result. @@ -304,7 +295,7 @@ declare namespace process { /** * Process exit * @since 7 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param code Process exit code. */ function exit(code: number): void; @@ -312,7 +303,7 @@ declare namespace process { /** * Return the current work directory; * @since 7 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @systemapi Hide this for inner system use * @return Return the current work directory. */ @@ -321,7 +312,7 @@ declare namespace process { /** * Change current directory * @since 7 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @systemapi Hide this for inner system use * @param dir The path you want to change. */ @@ -330,7 +321,7 @@ declare namespace process { /** * Returns the running time of the system * @since 7 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @return Return the running time of the system. */ function uptime(): number; @@ -338,7 +329,7 @@ declare namespace process { /** * Return whether the signal was sent successfully * @since 7 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param signal Signal sent. * @param pid Send signal to target pid. * @return Return the result of the signal. diff --git a/api/@ohos.uri.d.ts b/api/@ohos.uri.d.ts index 5ddebd8e6113e11672e55b2f02f0f71a521cbd2f..12b6b2230612efcc9d18be077fbbb47c71922e9a 100644 --- a/api/@ohos.uri.d.ts +++ b/api/@ohos.uri.d.ts @@ -16,8 +16,7 @@ /** * The uri module provides utilities for URI resolution and parsing. * @since 8 - * @sysCap SystemCapability.CCRuntime - * @devices phone, tablet + * @syscap SystemCapability.Utils.Lang * @import import uri from '@ohos.uri'; * @permission N/A */ @@ -32,7 +31,7 @@ declare namespace uri { /** * Returns the serialized URI as a string. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @return Returns the serialized URI as a string. */ toString(): string @@ -40,7 +39,7 @@ declare namespace uri { /** * Tests whether this URI is equivalent to other URI objects. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param other URI object to be compared * @return boolean Tests whether this URI is equivalent to other URI objects. */ @@ -49,7 +48,7 @@ declare namespace uri { /** * Indicates whether this URI is an absolute URI. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @return boolean Indicates whether the URI is an absolute URI (whether the scheme component is defined). */ checkIsAbsolute(): boolean; @@ -57,7 +56,7 @@ declare namespace uri { /** * Normalize the path of this URI. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @return URI Used to normalize the path of this URI and return a URI object whose path has been normalized. */ normalize(): URI; @@ -65,63 +64,63 @@ declare namespace uri { /** * Gets the protocol part of the URI. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang */ scheme: string; /** * Obtains the user information part of the URI. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang */ userInfo: string; /** * Gets the hostname portion of the URI without a port. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang */ host: string; /** * Gets the port portion of the URI. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang */ port: string; /** * Gets the path portion of the URI. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang */ path: string; /** * Gets the query portion of the URI * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang */ query: string; /** * Gets the fragment part of the URI. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang */ fragment: string; /** * Gets the decoding permission component part of this URI. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang */ authority: string; /** * Gets the decoding scheme-specific part of the URI. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang */ ssp: string; } diff --git a/api/@ohos.url.d.ts b/api/@ohos.url.d.ts index 246bdc00eaa92f89de0da7371a26c28362084be9..0f1f6b95631d6cac6f6eb2eb2b56e696b7553619 100644 --- a/api/@ohos.url.d.ts +++ b/api/@ohos.url.d.ts @@ -16,8 +16,7 @@ /** * The url module provides utilities for URL resolution and parsing. * @since 7 - * @sysCap SystemCapability.CCRuntime - * @devices phone, tablet + * @syscap SystemCapability.Utils.Lang * @import import url from '@ohos.url'; * @permission N/A */ @@ -37,7 +36,7 @@ declare namespace url { /** * Appends a specified key/value pair as a new search parameter. * @since 7 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param name Key name of the search parameter to be inserted. * @param value Values of search parameters to be inserted. */ @@ -46,7 +45,7 @@ declare namespace url { /** * Deletes the given search parameter and its associated value,from the list of all search parameters. * @since 7 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param Name of the key-value pair to be deleted. */ delete(name: string): void; @@ -54,7 +53,7 @@ declare namespace url { /** * Returns all key-value pairs associated with a given search parameter as an array. * @since 7 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param Name Specifies the name of a key value. * @return string[] Returns all key-value pairs with the specified name. */ @@ -64,7 +63,7 @@ declare namespace url { * Returns an ES6 iterator. Each item of the iterator is a JavaScript Array. * The first item of Array is name, and the second item of Array is value. * @since 7 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @return Returns an iterator for ES6. */ entries(): IterableIterator<[string, string]>; @@ -72,7 +71,7 @@ declare namespace url { /** * Callback functions are used to traverse key-value pairs on the URLSearchParams instance object. * @since 7 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param value Current traversal key value. * @param key Indicates the name of the key that is traversed. * @param searchParams The instance object that is currently calling the forEach method. @@ -83,7 +82,7 @@ declare namespace url { /** * Returns the first value associated to the given search parameter. * @since 7 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param name Specifies the name of a key-value pair. * @return Returns the first value found by name. If no value is found, null is returned. */ @@ -92,7 +91,7 @@ declare namespace url { /** * Returns a Boolean that indicates whether a parameter with the specified name exists. * @since 7 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param name Specifies the name of a key-value pair. * @return Returns a Boolean value that indicates whether a found */ @@ -104,7 +103,7 @@ declare namespace url { * deletes the others. If the search parameter doesn't exist, this * method creates it. * @since 7 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param name Key name of the parameter to be set. * @param value Indicates the parameter value to be set. */ @@ -113,14 +112,14 @@ declare namespace url { /** * Sort all key/value pairs contained in this object in place and return undefined. * @since 7 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang */ sort(): void; /** * Returns an iterator allowing to go through all keys contained in this object. * @since 7 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @return Returns an ES6 Iterator over the names of each name-value pair. */ keys(): IterableIterator; @@ -128,7 +127,7 @@ declare namespace url { /** * Returns an iterator allowing to go through all values contained in this object. * @since 7 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @return Returns an ES6 Iterator over the values of each name-value pair. */ values(): IterableIterator; @@ -137,7 +136,7 @@ declare namespace url { * Returns an iterator allowing to go through all key/value * pairs contained in this object. * @since 7 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @return Returns an ES6 iterator. Each item of the iterator is a JavaScript Array. * The first item of Array is name, and the second item of Array is value. */ @@ -146,7 +145,7 @@ declare namespace url { /** * Returns a query string suitable for use in a URL. * @since 7 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @return Returns a search parameter serialized as a string, percent-encoded if necessary. */ toString(): string; @@ -164,7 +163,7 @@ declare namespace url { /** * Returns the serialized URL as a string. * @since 7 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @return Returns the serialized URL as a string. */ toString(): string; @@ -172,7 +171,7 @@ declare namespace url { /** * Returns the serialized URL as a string. * @since 7 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @return Returns the serialized URL as a string. */ toJSON(): string; @@ -180,70 +179,70 @@ declare namespace url { /** * Gets and sets the fragment portion of the URL. * @since 7 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang */ hash: string; /** * Gets and sets the host portion of the URL. * @since 7 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang */ host: string; /** * Gets and sets the host name portion of the URL,not include the port. * @since 7 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang */ hostname: string; /** * Gets and sets the serialized URL. * @since 7 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang */ href: string; /** * Gets the read-only serialization of the URL's origin. * @since 7 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang */ readonly origin: string; /** * Gets and sets the password portion of the URL. * @since 7 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang */ password: string; /** * Gets and sets the path portion of the URL. * @since 7 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang */ pathname: string; /** * Gets and sets the port portion of the URL. * @since 7 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang */ port: string; /** * Gets and sets the protocol portion of the URL. * @since 7 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang */ protocol: string; /** * Gets and sets the serialized query portion of the URL. * @since 7 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang */ search: string; @@ -252,7 +251,7 @@ declare namespace url { * This property is read-only, but URLSearchParams provides an object that can be used to change * the URL instance. To replace the entire query parameter for a URL, use url.searchsetter. * @since 7 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @note Be careful when modifying with .searchParams, because the URLSearchParams * object uses different rules to determine which characters to * percent-encode according to the WHATWG specification. @@ -262,7 +261,7 @@ declare namespace url { /** * Gets and sets the username portion of the URL. * @since 7 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang */ username: string; } diff --git a/api/@ohos.util.d.ts b/api/@ohos.util.d.ts index cddedae335a14f857dd660500bd2842787570d6b..4ec1ce1808fc942d2bd3cfe096227443605a733b 100644 --- a/api/@ohos.util.d.ts +++ b/api/@ohos.util.d.ts @@ -16,8 +16,7 @@ * TextDecoder support full encoding in ICU data utf-8 utf-16 iso8859 must support in all device, TextEncoder takes a * stream of code points as input and emits a stream of UTF-8 bytes, and system help function. * @since 7 - * @sysCap SystemCapability.CCRuntime - * @devices phone, tablet + * @syscap SystemCapability.Utils.Lang * @import import util from '@ohos.util'; * @permission N/A */ @@ -40,7 +39,7 @@ declare namespace util { * %c: CSS. This specifier is ignored and will skip any CSS passed in. * %%: single percent sign ('%'). This does not consume an argument.Returns: The formatted string. * @since 7 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param format styled string * @param args data to be formatted * @return Return the character string formatted in a specific format @@ -50,7 +49,7 @@ declare namespace util { /** * Get the string name of the system errno. * @since 7 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param errno the error code generated by an error in the system * @return return the string name of a system errno */ @@ -60,7 +59,7 @@ declare namespace util { * Takes an async function (or a function that returns a Promise) and returns a function following the * error-first callback style. * @since 7 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param original asynchronous function */ function callbackWrapper(original: Function): (err: Object, value: Object) => void; @@ -69,7 +68,7 @@ declare namespace util { * Takes a function following the common error-first callback style, i.e taking an (err, value) => * callback as the last argument, and return a version that returns promises. * @since 7 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param original asynchronous function * @return return a version that returns promises */ @@ -79,28 +78,28 @@ declare namespace util { /** * the source encoding's name, lowercased. * @since 7 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang */ readonly encoding: string; /** * Returns `true` if error mode is "fatal", and `false` otherwise. * @since 7 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang */ readonly fatal: boolean; /** * Returns `true` if ignore BOM flag is set, and `false` otherwise. * @since 7 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang */ readonly ignoreBOM = false; /** * the textEncoder constructor. * @param 7 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param encoding decoding format */ constructor( @@ -111,7 +110,7 @@ declare namespace util { /** * Returns the result of running encoding's decoder. * @since 7 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param input decoded numbers in accordance with the format * @return return decoded text */ @@ -122,21 +121,21 @@ declare namespace util { /** * Encoding format. * @since 7 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang */ readonly encoding = "utf-8"; /** * the textEncoder constructor. * @since 7 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang */ constructor(); /** * Returns the result of encoder. * @since 7 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param The string to be encoded. * @return returns the encoded text. */ @@ -145,7 +144,7 @@ declare namespace util { /** * encode string, write the result to dest array. * @since 7 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param input The string to be encoded. * @param dest decoded numbers in accordance with the format * @return returns Returns the object, where read represents @@ -162,7 +161,7 @@ declare namespace util { /** * A constructor used to create a RationalNumber instance with a given numerator and denominator. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param numerator An integer number * @param denominator An integer number */ @@ -170,7 +169,7 @@ declare namespace util { /** * Creates a RationalNumber object based on a given string. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param String Expression of Rational Numbers * @return Returns a RationalNumber object generated based on the given string. */ @@ -178,7 +177,7 @@ declare namespace util { /** * Compares the current RationalNumber object to the given object. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param An object of other rational numbers * @return Returns 0 or 1, or -1, depending on the comparison. */ @@ -186,7 +185,7 @@ declare namespace util { /** * Compares two objects for equality. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param An object * @return Returns true if the given object is the same as the current object; Otherwise, false is returned. */ @@ -194,14 +193,14 @@ declare namespace util { /** * Gets integer and floating-point values of a rational number object. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @return Returns the integer and floating-point values of a rational number object. */ valueOf(): number; /** * Get the greatest common divisor of two integers. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param number1 is an integer. * @param number2 is an integer. * @return Returns the greatest common divisor of two integers, integer type. @@ -210,42 +209,42 @@ declare namespace util { /** * Gets the denominator of the current object. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @return Returns the denominator of the current object. */ getDenominator(): number; /** * Gets the numerator​ of the current object. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @return Returns the numerator​ of the current object. */ getNumerator(): number; /** * Checks whether the current RationalNumber object represents an infinite value. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @return If the denominator is not 0, true is returned. Otherwise, false is returned. */ isFinite() : boolean; /** * Checks whether the current RationalNumber object represents a Not-a-Number (NaN) value. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @return If both the denominator and numerator are 0, true is returned. Otherwise, false is returned. */ isNaN(): boolean; /** * Checks whether the current RationalNumber object represents the value 0. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @return If the value represented by the current object is 0, true is returned. Otherwise, false is returned. */ isZero(): boolean; /** * Obtains a string representation of the current RationalNumber object. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @return Returns a string representation of the current RationalNumber object. */ toString(): string; @@ -255,90 +254,90 @@ declare namespace util { /** * Default constructor used to create a new LruBuffer instance with the default capacity of 64. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param capacity Indicates the capacity to customize for the buffer. */ constructor(capacity?:number); /** * Updates the buffer capacity to a specified capacity. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param newCapacity Indicates the new capacity to set. */ updateCapacity(newCapacity: number):void /** *Returns a string representation of the object. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @return Returns the string representation of the object and outputs the string representation of the object. */ toString():string /** * Obtains a list of all values in the current buffer. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @return Returns the total number of values in the current buffer. */ length:number /** * Obtains the capacity of the current buffer. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @return Returns the capacity of the current buffer. */ getCapacity(): number; /** * Clears key-value pairs from the current buffer. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang */ clear(): void; /** * Obtains the number of times createDefault(Object) returned a value. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @return Returns the number of times createDefault(java.lang.Object) returned a value. */ getCreateCount(): number; /** * Obtains the number of times that the queried values are not matched. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @return Returns the number of times that the queried values are not matched. */ getMissCount(): number; /** * Obtains the number of times that values are evicted from the buffer. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @return Returns the number of times that values are evicted from the buffer. */ getRemovalCount(): number; /** * Obtains the number of times that the queried values are successfully matched. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @return Returns the number of times that the queried values are successfully matched. */ getMatchCount(): number; /** * Obtains the number of times that values are added to the buffer. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @return Returns the number of times that values are added to the buffer. */ getPutCount(): number; /** * Checks whether the current buffer is empty. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @return Returns true if the current buffer contains no value. */ isEmpty(): boolean; /** * Obtains the value associated with a specified key. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param key Indicates the key to query. * @return Returns the value associated with the key if the specified key is present in the buffer; returns null otherwise. */ @@ -346,7 +345,7 @@ declare namespace util { /** * Adds a key-value pair to the buffer. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param key Indicates the key to add. * @param value Indicates the value associated with the key to add. * @return Returns the value associated with the added key; returns the original value if the key to add already exists. @@ -355,21 +354,21 @@ declare namespace util { /** * Obtains a list of all values in the current buffer. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @return Returns the list of all values in the current buffer in ascending order, from the most recently accessed to least recently accessed. */ values(): V[]; /** * Obtains a list of keys for the values in the current buffer. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @return Returns a list of keys sorted from most recently accessed to least recently accessed. */ keys(): K[]; /** * Deletes a specified key and its associated value from the current buffer. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param key Indicates the key to delete. * @return Returns an Optional object containing the deleted key-value pair; returns an empty Optional object if the key does not exist. */ @@ -377,7 +376,7 @@ declare namespace util { /** * Executes subsequent operations after a value is deleted. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param isEvict The parameter value is true if this method is called due to insufficient capacity, and the parameter value is false in other cases. * @param key Indicates the deleted key. * @param value Indicates the deleted value. @@ -387,7 +386,7 @@ declare namespace util { /** * Checks whether the current buffer contains a specified key. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param key Indicates the key to check. * @return Returns true if the buffer contains the specified key. */ @@ -395,7 +394,7 @@ declare namespace util { /** * Executes subsequent operations if miss to compute a value for the specific key. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param key Indicates the missed key. * @return Returns the value associated with the key. */ @@ -403,14 +402,14 @@ declare namespace util { /** * Returns an array of key-value pairs of enumeratable properties of a given object. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @return Returns an array of key-value pairs for the enumeratable properties of the given object itself. */ entries(): IterableIterator<[K, V]>; /** * Specifies the default iterator for an object. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @return Returns a two - dimensional array in the form of key - value pairs. */ [Symbol.iterator](): IterableIterator<[K, V]>; @@ -419,7 +418,7 @@ declare namespace util { /** * The comparison function is used by the scope. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @return Returns whether the current object is greater than or equal to the input object. */ compareTo(other: ScopeComparable): boolean; @@ -427,7 +426,7 @@ declare namespace util { /** * A type used to denote ScopeComparable or number. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang */ type ScopeType = ScopeComparable | number; @@ -435,7 +434,7 @@ declare namespace util { /** * A constructor used to create a Scope instance with the lower and upper bounds specified. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param lowerObj A ScopeType value * @param upperObj A ScopeType value */ @@ -443,14 +442,14 @@ declare namespace util { /** * Obtains a string representation of the current range. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @return Returns a string representation of the current range object. */ toString(): string; /** * Returns the intersection of a given range and the current range. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param range A Scope range object * @return Returns the intersection of a given range and the current range. */ @@ -458,7 +457,7 @@ declare namespace util { /** * Returns the intersection of the current range and the range specified by the given lower and upper bounds. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param lowerObj A ScopeType value * @param upperObj A ScopeType value * @return Returns the intersection of the current range and the range specified by the given lower and upper bounds. @@ -467,21 +466,21 @@ declare namespace util { /** * Obtains the upper bound of the current range. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @return Returns the upper bound of the current range. */ getUpper(): ScopeType; /** * Obtains the lower bound of the current range. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @return Returns the lower bound of the current range. */ getLower(): ScopeType; /** * Creates the smallest range that includes the current range and the given lower and upper bounds. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param lowerObj A ScopeType value * @param upperObj A ScopeType value * @return Returns the smallest range that includes the current range and the given lower and upper bounds. @@ -490,7 +489,7 @@ declare namespace util { /** * Creates the smallest range that includes the current range and a given range. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param range A Scope range object * @return Returns the smallest range that includes the current range and a given range. */ @@ -498,7 +497,7 @@ declare namespace util { /** * Creates the smallest range that includes the current range and a given value. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param value A ScopeType value * @return Returns the smallest range that includes the current range and a given value. */ @@ -506,7 +505,7 @@ declare namespace util { /** * Checks whether a given value is within the current range. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param range A ScopeType range * @return If the value is within the current range return true,otherwise return false. */ @@ -514,7 +513,7 @@ declare namespace util { /** * Checks whether a given range is within the current range. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param value A Scope value * @return If the current range is within the given range return true,otherwise return false. */ @@ -522,7 +521,7 @@ declare namespace util { /** * Clamps a given value to the current range. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param value A ScopeType value * @return Returns a ScopeType object that a given value is clamped to the current range.. */ @@ -533,7 +532,7 @@ declare namespace util { /** * Constructor for creating base64 encoding and decoding * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param No input parameter is required. * @return No return value. */ @@ -541,7 +540,7 @@ declare namespace util { /** * Encodes all bytes from the specified u8 array into a newly-allocated u8 array using the Base64 encoding scheme. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param value A Uint8Array value * @return Return the encoded new Uint8Array. */ @@ -549,7 +548,7 @@ declare namespace util { /** * Encodes the specified byte array into a String using the Base64 encoding scheme. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param value A Uint8Array value * @return Return the encoded string. */ @@ -557,7 +556,7 @@ declare namespace util { /** * Decodes a Base64 encoded String or input u8 array into a newly-allocated u8 array using the Base64 encoding scheme. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param value A Uint8Array value or value A string value * @return Return the decoded Uint8Array. */ @@ -565,7 +564,7 @@ declare namespace util { /** * Asynchronously encodes all bytes in the specified u8 array into the newly allocated u8 array using the Base64 encoding scheme. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param value A Uint8Array value * @return Return the encodes asynchronous new Uint8Array. */ @@ -573,7 +572,7 @@ declare namespace util { /** * Asynchronously encodes the specified byte array into a String using the Base64 encoding scheme. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param value A Uint8Array value * @return Returns the encoded asynchronous string. */ @@ -581,7 +580,7 @@ declare namespace util { /** * Use the Base64 encoding scheme to asynchronously decode a Base64-encoded string or input u8 array into a newly allocated u8 array. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param value A Uint8Array value or value A string value * @return Return the decoded asynchronous Uint8Array. */ @@ -592,7 +591,7 @@ declare namespace util { /** * The types constructor * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param No input parameter is required. * @return No return value. */ @@ -600,7 +599,7 @@ declare namespace util { /** * Check whether the entered value is of arraybuffer or sharedarraybuffer type. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param value A ArrayBuffer or SharedArrayBuffer value * @Returns true if the value is a built-in ArrayBuffer or SharedArrayBuffer instance.. */ @@ -608,7 +607,7 @@ declare namespace util { /** * Check whether the type is included in the isAnyArrayBuffer. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param value A included in the isAnyArrayBuffer value * @return Returns true if the value is an instance of one of the ArrayBuffer views, such as typed array objects or DataView. Equivalent to ArrayBuffer.isView(). */ @@ -616,7 +615,7 @@ declare namespace util { /** * Check whether the entered value is an arguments object type. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param value A arguments value * @return Returns true if the value is an arguments object. */ @@ -624,7 +623,7 @@ declare namespace util { /** * Check whether the entered value is of arraybuffer type. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param value A arraybuffer value * @return Returns true if the value is a built-in ArrayBuffer instance. This does not include SharedArrayBuffer instances. Usually, it is desirable to test for both; See isAnyArrayBuffer() for that. */ @@ -632,7 +631,7 @@ declare namespace util { /** * Check whether the value entered is an asynchronous function type. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param value A async function value * @return Returns true if the value is an async function. This only reports back what the JavaScript engine is seeing; in particular, the return value may not match the original source code if a transpilation tool was used. */ @@ -640,7 +639,7 @@ declare namespace util { /** * Check whether the entered value is of bigint64array array type. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param value A BigInt64Array value * @return Returns true if the value is a BigInt64Array instance. */ @@ -648,7 +647,7 @@ declare namespace util { /** * Check whether the entered value is of biguint64array array array type. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param value A BigUint64Array value * @return Returns true if the value is a BigUint64Array instance. */ @@ -656,7 +655,7 @@ declare namespace util { /** * Check whether the entered value is a Boolean object type. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param value A boolean object value * @return Returns true if the value is a boolean object, e.g. created by new Boolean(). */ @@ -664,7 +663,7 @@ declare namespace util { /** * Check whether the entered value is a Boolean or number or string or symbol object type. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param value A boxed primitive object value * @return Returns true if the value is any boxed primitive object, e.g. created by new Boolean(), new String() or Object(Symbol()). */ @@ -672,7 +671,7 @@ declare namespace util { /** * Check whether the entered value is of DataView type. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param value A DataView value * @return Returns true if the value is a built-in DataView instance. */ @@ -680,7 +679,7 @@ declare namespace util { /** * Check whether the entered value is of type date. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param value A Date value * @return Returns true if the value is a built-in Date instance. */ @@ -688,7 +687,7 @@ declare namespace util { /** * Check whether the entered value is a native external value type. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param value A External value * @return Returns true if the value is a native External value. */ @@ -696,7 +695,7 @@ declare namespace util { /** * Check whether the entered value is of float32array array type. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param value A Float32Array value * @return Returns true if the value is a built-in Float32Array instance. */ @@ -704,7 +703,7 @@ declare namespace util { /** * Check whether the entered value is of float64array array type. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param value A Float64Array value * @return Returns true if the value is a built-in Float64Array instance. */ @@ -712,7 +711,7 @@ declare namespace util { /** * Check whether the input value is a generator function type. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param value A generator function value * @return Returns true if the value is a generator function. This only reports back what the JavaScript engine is seeing; in particular, the return value may not match the original source code if a transpilation tool was used. */ @@ -720,7 +719,7 @@ declare namespace util { /** * Check whether the entered value is a generator object type. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param value A generator object value * @return Returns true if the value is a generator object as returned from a built-in generator function. This only reports back what the JavaScript engine is seeing; in particular, the return value may not match the original source code if a transpilation tool was used. */ @@ -728,7 +727,7 @@ declare namespace util { /** * Check whether the entered value is of int8array array type. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param value A Int8Array value * @return Returns true if the value is a built-in Int8Array instance. */ @@ -736,7 +735,7 @@ declare namespace util { /** * Check whether the entered value is the int16array type. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param value A Int16Array value * @return Returns true if the value is a built-in Int16Array instance. */ @@ -744,7 +743,7 @@ declare namespace util { /** * Check whether the entered value is the int32array array type. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param value A Int32Array value * @return Returns true if the value is a built-in Int32Array instance. */ @@ -752,7 +751,7 @@ declare namespace util { /** * Check whether the entered value is of map type. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param value A Map value * @return Returns true if the value is a built-in Map instance. */ @@ -760,7 +759,7 @@ declare namespace util { /** * Check whether the entered value is the iterator type of map. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param value A Map iterator value * @return Returns true if the value is an iterator returned for a built-in Map instance. */ @@ -768,7 +767,7 @@ declare namespace util { /** * Check whether the entered value is the module namespace object object type. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param value A Module Namespace Object value * @return Returns true if the value is an instance of a Module Namespace Object. */ @@ -776,7 +775,7 @@ declare namespace util { /** * Check whether the value entered is of type error. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param value A Error value * @return Returns true if the value is an instance of a built-in Error type. */ @@ -784,7 +783,7 @@ declare namespace util { /** * Check whether the entered value is of the number object type. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param value A number object value * @return Returns true if the value is a number object, e.g. created by new Number(). */ @@ -792,7 +791,7 @@ declare namespace util { /** * Check whether the entered value is of promise type. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param value A Promise value * @return Returns true if the value is a built-in Promise. */ @@ -800,7 +799,7 @@ declare namespace util { /** * Check whether the value entered is of proxy type. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param value A Proxy value * @return Returns true if the value is a Proxy instance. */ @@ -808,7 +807,7 @@ declare namespace util { /** * Check whether the entered value is of type regexp. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param value A regular expression object value * @return Returns true if the value is a regular expression object. */ @@ -816,7 +815,7 @@ declare namespace util { /** * Check whether the entered value is of type set. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param value A Set instance value * @return Returns true if the value is a built-in Set instance. */ @@ -824,7 +823,7 @@ declare namespace util { /** * Check whether the entered value is the iterator type of set. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param value A Set iterator value * @return Returns true if the value is an iterator returned for a built-in Set instance. */ @@ -832,7 +831,7 @@ declare namespace util { /** * Check whether the entered value is of type sharedarraybuffer. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param value A SharedArrayBuffer instance value * @return Returns true if the value is a built-in SharedArrayBuffer instance. This does not include ArrayBuffer instances. Usually, it is desirable to test for both; See isAnyArrayBuffer() for that. */ @@ -840,7 +839,7 @@ declare namespace util { /** * Check whether the entered value is a string object type. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param value A String object value * @return Returns true if the value is a string object, e.g. created by new String(). */ @@ -848,7 +847,7 @@ declare namespace util { /** * Check whether the entered value is a symbol object type. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param value A symbol object value * @return Returns true if the value is a symbol object, created by calling Object() on a Symbol primitive. */ @@ -856,7 +855,7 @@ declare namespace util { /** * Check whether the entered value is a type contained in typedarray. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param value A TypedArray instance value * @return Returns true if the value is a built-in TypedArray instance. */ @@ -864,7 +863,7 @@ declare namespace util { /** * Check whether the entered value is the uint8array array type. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param value A Uint8Array value * @return Returns true if the value is a built-in Uint8Array instance. */ @@ -872,7 +871,7 @@ declare namespace util { /** * Check whether the entered value is the uint8clapedarray array type. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param value A Uint8ClampedArray value * @return Returns true if the value is a built-in Uint8ClampedArray instance. */ @@ -880,7 +879,7 @@ declare namespace util { /** * Check whether the entered value is the uint16array array array type. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param value A Uint16Array value * @return Returns true if the value is a built-in Uint16Array instance. */ @@ -888,7 +887,7 @@ declare namespace util { /** * Check whether the entered value is the uint32array array type. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param value A Uint32Array value * @return Returns true if the value is a built-in Uint32Array instance. */ @@ -896,7 +895,7 @@ declare namespace util { /** * Check whether the entered value is of type weakmap. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param value A WeakMap value * @return Returns true if the value is a built-in WeakMap instance. */ @@ -904,7 +903,7 @@ declare namespace util { /** * Check whether the entered value is of type weakset. * @since 8 - * @sysCap SystemCapability.CCRuntime + * @syscap SystemCapability.Utils.Lang * @param value A WeakSet value * @return Returns true if the value is a built-in WeakSet instance. */