diff --git a/en/application-dev/reference/apis/js-apis-convertxml.md b/en/application-dev/reference/apis/js-apis-convertxml.md
index 70d35b6cb168e6f10b847a42bdefa8fd53eb3d40..4c66c928fb7ee6c5482d39db7b39acaa6793691e 100644
--- a/en/application-dev/reference/apis/js-apis-convertxml.md
+++ b/en/application-dev/reference/apis/js-apis-convertxml.md
@@ -47,21 +47,27 @@ For details about the error codes, see [Utils Error Codes](../errorcodes/errorco
**Example**
```js
-let xml =
- '' +
- '' +
- ' Happy' +
- ' Work' +
- ' Play' +
- '';
-let conv = new convertxml.ConvertXML()
-let options = {trim : false, declarationKey:"_declaration",
- instructionKey : "_instruction", attributesKey : "_attributes",
- textKey : "_text", cdataKey:"_cdata", doctypeKey : "_doctype",
- commentKey : "_comment", parentKey : "_parent", typeKey : "_type",
- nameKey : "_name", elementsKey : "_elements"}
-let result = JSON.stringify(conv.convertToJSObject(xml, options));
-console.log(result);
+try {
+ let xml =
+ '' +
+ '' +
+ ' Happy' +
+ ' Work' +
+ ' Play' +
+ '';
+ let conv = new convertxml.ConvertXML()
+ let options = {
+ trim: false, declarationKey: "_declaration",
+ instructionKey: "_instruction", attributesKey: "_attributes",
+ textKey: "_text", cdataKey: "_cdata", doctypeKey: "_doctype",
+ commentKey: "_comment", parentKey: "_parent", typeKey: "_type",
+ nameKey: "_name", elementsKey: "_elements"
+ }
+ let result = JSON.stringify(conv.convertToJSObject(xml, options));
+ console.log(result);
+} catch (e) {
+ console.log(e.toString());
+}
// Output (non-compact)
// {"_declaration":{"_attributes":{"version":"1.0","encoding":"utf-8"}},"_elements":[{"_type":"element","_name":"note","_attributes":{"importance":"high","logged":"true"},"_elements":[{"_type":"element","_name":"title","_elements":[{"_type":"text","_text":"Happy"}]},{"_type":"element","_name":"todo","_elements":[{"_type":"text","_text":"Work"}]},{"_type":"element","_name":"todo","_elements":[{"_type":"text","_text":"Play"}]}]}]}
```
diff --git a/en/application-dev/reference/apis/js-apis-process.md b/en/application-dev/reference/apis/js-apis-process.md
index 02dbfe617a26b98d8c0d5b5d533fa16e2bcede04..e50764d1b1ff3f948ec123294bb2a013d64329e2 100755
--- a/en/application-dev/reference/apis/js-apis-process.md
+++ b/en/application-dev/reference/apis/js-apis-process.md
@@ -18,13 +18,8 @@ import process from '@ohos.process';
| Name| Type| Readable| Writable| Description|
| -------- | -------- | -------- | -------- | -------- |
-| egid | number | Yes| No| Effective group identifier (EGID) of the process.
**System API**: This is a system API.
It is used only to test applications.|
-| euid | number | Yes| No| Effective user identifier (EUID) of the process.
**System API**: This is a system API.
It is used only to test applications.|
-| gid | number | Yes| No| Group identifier (GID) of the process.
**System API**: This is a system API.
It is used only to test applications.|
| uid | number | Yes| No| User identifier (UID) of the process.|
-| groups | number[] | Yes| No| Array with supplementary group IDs.
**System API**: This is a system API.
It is used only to test applications.|
| pid | number | Yes| No| Process ID (PID) of the process.|
-| ppid | number | Yes| No| Parent process ID (PPID) of the process.
**System API**: This is a system API.
It is used only to test applications.|
| tid8+ | number | Yes| No| Thread ID (TID) of the thread.|
@@ -120,50 +115,6 @@ let result = process.getPastCpuTime() ;
```
-## process.runCmd
-
-runCmd(command: string, options?: { timeout?: number, killSignal?: number | string, maxBuffer?: number }): ChildProcess
-
-Forks a new process to run a shell command and returns the **ChildProcess** object.
-
-**System API**: This is a system API.
-
-It is used only to test applications.
-
-**System capability**: SystemCapability.Utils.Lang
-
-**Parameters**
-
-| Name| Type| Mandatory| Description|
-| -------- | -------- | -------- | -------- |
-| command | string | Yes| Shell command to run.|
-| options | Object | No| Related parameters.|
-
-**Table 1** options
-
-| Name| Type| Mandatory| Description|
-| -------- | -------- | -------- | -------- |
-| timeout | number | No| Maximum running time (in milliseconds) of the child process. When the running time of the child process exceeds the value of this parameter, the parent process sends a **killSignal** to the child process to terminate it. The default value is **0**.|
-| killSignal | number \| string | No| Signal sent to the child process when the running time of a child process exceeds the timeout period. The default value is **SIGTERM**.|
-| maxBuffer | number | No| Maximum buffer size for the standard input and output of the child process. When the size is exceeded, the child process will be terminated. The default value is **1024 \* 1024**.|
-
-**Return value**
-
-| Type| Description|
-| -------- | -------- |
-| [ChildProcess](#childprocess) | **ChildProcess** object.|
-
-**Example**
-
-```js
-let child = process.runCmd('ls', { maxBuffer : 2 });
-let result = child.wait();
-child.getOutput.then(val=>{
- console.log("child.getOutput = " + val);
-})
-```
-
-
## process.abort
abort(): void
@@ -179,118 +130,6 @@ process.abort();
```
-## process.on
-
-on(type: string, listener: EventListener): void
-
-Stores the events triggered by the user.
-
-**System API**: This is a system API.
-
-It is used only to test applications.
-
-**System capability**: SystemCapability.Utils.Lang
-
-**Parameters**
-
-| Name| Type| Mandatory| Description|
-| -------- | -------- | -------- | -------- |
-| type | string | Yes| Type of the events to store. |
-| listener | [EventListener](#eventlistener) | Yes| Callback invoked to return the event.|
-
-**Example**
-
-```js
-process.on("data", (e)=>{
- console.log("data callback");
-})
-```
-
-
-## process.off
-
-off(type: string): boolean
-
-Deletes the event stored by the user.
-
-**System API**: This is a system API.
-
-It is used only to test applications.
-
-**System capability**: SystemCapability.Utils.Lang
-
-**Parameters**
-
-| Name| Type| Mandatory| Description|
-| -------- | -------- | -------- | -------- |
-| type | string | Yes| Type of the event to delete.|
-
-**Return value**
-
-| Type| Description|
-| -------- | -------- |
-| boolean | Returns **true** if the event is deleted; returns **false** otherwise.|
-
-**Example**
-
-```js
-process.on("data", (e)=>{
- console.log("data callback");
-})
-let result = process.off("data");
-```
-
-
-## process.cwd
-
-cwd(): string
-
-Obtains the working directory of this process.
-
-**System API**: This is a system API.
-
-It is used only to test applications.
-
-**System capability**: SystemCapability.Utils.Lang
-
-**Return value**
-
-| Type| Description|
-| -------- | -------- |
-| string| Working directory obtained.|
-
-**Example**
-
-```js
-let path = process.cwd();
-```
-
-
-## process.chdir
-
-chdir(dir: string): void
-
-Changes the working directory of this process.
-
-**System API**: This is a system API.
-
-It is used only to test applications.
-
-**System capability**: SystemCapability.Utils.Lang
-
-**Parameters**
-
-| Name| Type| Mandatory| Description|
-| -------- | -------- | -------- | -------- |
-| dir | string | Yes| Path|
-
-**Example**
-
-```js
-process.chdir('/system');
-```
-
-
## process.uptime
uptime(): number
@@ -729,156 +568,3 @@ let pro = new process.ProcessManager();
let pres = process.pid;
let result = pro.kill(28, pres);
```
-
-
-## ChildProcess
-
-The **ChildProcess** object is a new child process and can be obtained by calling [process.runCmd](#processruncmd). The main process can obtain the standard input and output of the child process, send signals to the child process, and close the child process.
-
-**System API**: This is a system API.
-
-### Attributes
-
-**System API**: This is a system API.
-
-**System capability**: SystemCapability.Utils.Lang
-
-| Name| Type| Readable| Writable| Description|
-| -------- | -------- | -------- | -------- | -------- |
-| pid | number | Yes| No| PID of the child process.
**System API**: This is a system API.
It is used only to test applications.|
-| ppid | number | Yes| No| PPID of the child process.
**System API**: This is a system API.
It is used only to test applications.|
-| exitCode | number | Yes| No| Exit code of the child process.
**System API**: This is a system API.
It is used only to test applications.|
-| killed | boolean | Yes| No| Whether the parent process successfully sends a signal to the child process to terminate it.
**System API**: This is a system API.
It is used only to test applications.|
-
-
-### wait
-
-wait(): Promise<number>
-
-Waits until the child process ends. This method uses a promise to return the exit code of the child process.
-
-**System API**: This is a system API.
-
-It is used only to test applications.
-
-**System capability**: SystemCapability.Utils.Lang
-
-**Return value**
-
-| Type| Description|
-| -------- | -------- |
-| Promise<number> | Promise used to return the exit code of the child process.|
-
-**Example**
-
-```js
-let child = process.runCmd('ls');
-let result = child.wait();
-result.then(val=>{
- console.log("result = " + val);
-})
-```
-
-
-### getOutput
-
-getOutput(): Promise<Uint8Array>
-
-Obtains the standard output of the child process.
-
-**System API**: This is a system API.
-
-It is used only to test applications.
-
-**System capability**: SystemCapability.Utils.Lang
-
-**Return value**
-
-| Type| Description|
-| -------- | -------- |
-| Promise<Uint8Array> | Promise used to return the standard output in a Uint8Array.|
-
-**Example**
-
-```js
-let child = process.runCmd('ls');
-let result = child.wait();
-child.getOutput().then(val=>{
- console.log("child.getOutput = " + val);
-})
-```
-
-
-### getErrorOutput
-
-getErrorOutput(): Promise<Uint8Array>
-
-Obtains the standard error output of the child process.
-
-**System API**: This is a system API.
-
-It is used only to test applications.
-
-**System capability**: SystemCapability.Utils.Lang
-
-**Return value**
-
-| Type| Description|
-| -------- | -------- |
-| Promise<Uint8Array> | Promise used to return the standard error output in a Uint8Array.|
-
-**Example**
-
-```js
-let child = process.runCmd('madir test.text');
-let result = child.wait();
-child.getErrorOutput().then(val=>{
- console.log("child.getErrorOutput= " + val);
-})
-```
-
-
-### close
-
-close(): void
-
-Closes the child process in running.
-
-**System API**: This is a system API.
-
-It is used only to test applications.
-
-**System capability**: SystemCapability.Utils.Lang
-
-**Example**
-
-```js
-let child = process.runCmd('sleep 5; ls');
-child.close();
-```
-
-
-### kill
-
-kill(signal: number | string): void
-
-Sends a signal to the specified child process to terminate it.
-
-**System API**: This is a system API.
-
-It is used only to test applications.
-
-**System capability**: SystemCapability.Utils.Lang
-
-**Parameters**
-
-| Name| Type| Mandatory| Description|
-| -------- | -------- | -------- | -------- |
-| signal | number \| string | Yes| Number or string to send.|
-
-**Example**
-
-```js
-let child = process.runCmd('sleep 5; ls');
-child.kill(9);
-```
diff --git a/en/application-dev/reference/apis/js-apis-util.md b/en/application-dev/reference/apis/js-apis-util.md
index f4193680d4d0732a38ab9564bbd67428c7a3497a..6783f30ea083b2db58cf16d37ec11e8c5bd0ea8e 100755
--- a/en/application-dev/reference/apis/js-apis-util.md
+++ b/en/application-dev/reference/apis/js-apis-util.md
@@ -26,7 +26,7 @@ Formats the specified values and inserts them into the string by replacing the w
| Name | Type | Mandatory| Description |
| ------- | -------- | ---- | -------------- |
| format | string | Yes | String.|
-| ...args | Object[] | No | Values to format. The formatted values will be replaced the wildcard in the string. |
+| ...args | Object[] | No | Values to format. The formatted values will replace the wildcard in the string. If this parameter is not set, the first parameter is returned by default.|
**Return value**
@@ -69,6 +69,20 @@ let result = util.errnoToString(errnum);
console.log("result = " + result);
```
+**Some error code and message examples**
+
+| Error Code| Message |
+| ------ | -------------------------------- |
+| -1 | operation not permitted |
+| -2 | no such file or directory |
+| -3 | no such process |
+| -4 | interrupted system call |
+| -5 | i/o error |
+| -11 | resource temporarily unavailable |
+| -12 | not enough memory |
+| -13 | permission denied |
+| -100 | network is down |
+
## util.callbackWrapper
callbackWrapper(original: Function): (err: Object, value: Object )=>void
@@ -92,15 +106,14 @@ Calls back an asynchronous function. In the callback, the first parameter indica
**Example**
```js
- async function promiseFn() {
- return Promise.reject('value');
- }
- let err = "type err";
- let cb = util.callbackWrapper(promiseFn);
- cb((err, ret) => {
- console.log(err);
- console.log(ret);
- }, err)
+async function fn() {
+ return 'hello world';
+}
+let cb = util.callbackWrapper(fn);
+cb(1, (err, ret) => {
+ if (err) throw err;
+ console.log(ret);
+});
```
## util.promisify9+
@@ -126,24 +139,30 @@ Processes an asynchronous function and returns a promise.
**Example**
```js
- function aysnFun(str1, str2) {
- if (typeof str1 === 'object' && typeof str2 === 'object') {
- return str2
- } else {
- return str1
- }
- }
- let newPromiseObj = util.promisify(aysnFun);
- newPromiseObj({ err: "type error" }, {value:'HelloWorld'}).then(res => {
- console.log(res);
- })
+function fun(num, callback) {
+ if (typeof num === 'number') {
+ callback(null, num + 3);
+ } else {
+ callback("type err");
+ }
+}
+
+const addCall = util.promisify(fun);
+(async () => {
+ try {
+ let res = await addCall(2);
+ console.log(res);
+ } catch (err) {
+ console.log(err);
+ }
+})();
```
## util.randomUUID9+
randomUUID(entropyCache?: boolean): string
-Uses a secure random number generator to generate a random universally unique identifier (UUID) of RFC 4122 version 4.
+Uses a secure random number generator to generate a random universally unique identifier (UUID) in RFC 4122 version 4.
**System capability**: SystemCapability.Utils.Lang
@@ -172,7 +191,7 @@ Uses a secure random number generator to generate a random universally unique id
randomBinaryUUID(entropyCache?: boolean): Uint8Array
-Uses a secure random number generator to generate a random binary UUID of RFC 4122 version 4.
+Uses a secure random number generator to generate a random UUID in RFC 4122 version 4.
**System capability**: SystemCapability.Utils.Lang
@@ -243,7 +262,7 @@ Formats the specified values and inserts them into the string by replacing the w
| Name| Type| Mandatory| Description|
| -------- | -------- | -------- | -------- |
| format | string | Yes| String.|
-| ...args | Object[] | No| Values to format. The formatted values will be replaced the wildcard in the string.|
+| ...args | Object[] | No| Values to format. The formatted values will replace the wildcard in the string. If this parameter is not set, the first parameter is returned by default.|
**Return value**
@@ -497,6 +516,7 @@ Decodes the input content.
| -------- | -------- | -------- | -------- | -------- |
| encoding | string | Yes| No| Encoding format. The default format is **utf-8**.|
+
### constructor
constructor()
@@ -1456,7 +1476,7 @@ Performs subsequent operations after a value is removed.
| Name | Type | Mandatory| Description |
| -------- | ------- | ---- | ------------------------------------------------------------ |
-| isEvict | boolean | Yes | Whether the cache capacity is insufficient. If the value is **true**, this method is called due to insufficient capacity. |
+| isEvict | boolean | Yes | Whether the cache capacity is insufficient. If the value is **true**, this API is called due to insufficient capacity. |
| key | K | Yes | Key removed. |
| value | V | Yes | Value removed. |
| newValue | V | Yes | New value for the key if the **put()** method is called and the key to be added already exists. In other cases, this parameter is left blank.|
@@ -3358,7 +3378,7 @@ A constructor used to create a **LruBuffer** instance. The default capacity of t
> **NOTE**
>
-> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [constructor9+](#constructor9) instead.
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [LRUCache.constructor9+](#constructor9-3) instead.
**System capability**: SystemCapability.Utils.Lang
@@ -3382,7 +3402,7 @@ Changes the **LruBuffer** capacity. If the new capacity is less than or equal to
> **NOTE**
>
-> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [updateCapacity9+](#updatecapacity9) instead.
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [LRUCache.updateCapacity9+](#updatecapacity9) instead.
**System capability**: SystemCapability.Utils.Lang
@@ -3407,7 +3427,7 @@ Obtains the string representation of this **LruBuffer** object.
> **NOTE**
>
-> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [toString9+](#tostring9) instead.
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [LRUCache.toString9+](#tostring9) instead.
**System capability**: SystemCapability.Utils.Lang
@@ -3435,7 +3455,7 @@ Obtains the capacity of this buffer.
> **NOTE**
>
-> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [getCapacity9+](#getcapacity9) instead.
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [LRUCache.getCapacity9+](#getcapacity9) instead.
**System capability**: SystemCapability.Utils.Lang
@@ -3459,7 +3479,7 @@ Clears key-value pairs from this buffer. The **afterRemoval()** method will be c
> **NOTE**
>
-> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [clear9+](#clear9) instead.
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [LRUCache.clear9+](#clear9) instead.
**System capability**: SystemCapability.Utils.Lang
@@ -3480,7 +3500,7 @@ Obtains the number of return values for **createDefault()**.
> **NOTE**
>
-> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [getCreateCount9+](#getcreatecount9) instead.
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [LRUCache.getCreateCount9+](#getcreatecount9) instead.
**System capability**: SystemCapability.Utils.Lang
@@ -3506,7 +3526,7 @@ Obtains the number of times that the queried values are mismatched.
> **NOTE**
>
-> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [getMissCount9+](#getmisscount9) instead.
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [LRUCache.getMissCount9+](#getmisscount9) instead.
**System capability**: SystemCapability.Utils.Lang
@@ -3533,7 +3553,7 @@ Obtains the number of removals from this buffer.
> **NOTE**
>
-> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [getRemovalCount9+](#getremovalcount9) instead.
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [LRUCache.getRemovalCount9+](#getremovalcount9) instead.
**System capability**: SystemCapability.Utils.Lang
@@ -3561,7 +3581,7 @@ Obtains the number of times that the queried values are matched.
> **NOTE**
>
-> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [getMatchCount9+](#getmatchcount9) instead.
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [LRUCache.getMatchCount9+](#getmatchcount9) instead.
**System capability**: SystemCapability.Utils.Lang
@@ -3588,7 +3608,7 @@ Obtains the number of additions to this buffer.
> **NOTE**
>
-> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [getPutCount9+](#getputcount9) instead.
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [LRUCache.getPutCount9+](#getputcount9) instead.
**System capability**: SystemCapability.Utils.Lang
@@ -3614,7 +3634,7 @@ Checks whether this buffer is empty.
> **NOTE**
>
-> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [isEmpty9+](#isempty9) instead.
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [LRUCache.isEmpty9+](#isempty9) instead.
**System capability**: SystemCapability.Utils.Lang
@@ -3640,7 +3660,7 @@ Obtains the value of the specified key.
> **NOTE**
>
-> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [get9+](#get9) instead.
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [LRUCache.get9+](#get9) instead.
**System capability**: SystemCapability.Utils.Lang
@@ -3672,7 +3692,7 @@ Adds a key-value pair to this buffer.
> **NOTE**
>
-> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [put9+](#put9) instead.
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [LRUCache.put9+](#put9) instead.
**System capability**: SystemCapability.Utils.Lang
@@ -3704,7 +3724,7 @@ Obtains all values in this buffer, listed from the most to the least recently ac
> **NOTE**
>
-> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [values9+](#values9) instead.
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [LRUCache.values9+](#values9) instead.
**System capability**: SystemCapability.Utils.Lang
@@ -3732,7 +3752,7 @@ Obtains all keys in this buffer, listed from the most to the least recently acce
> **NOTE**
>
-> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [keys9+](#keys9) instead.
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [LRUCache.keys9+](#keys9) instead.
**System capability**: SystemCapability.Utils.Lang
@@ -3743,6 +3763,7 @@ Obtains all keys in this buffer, listed from the most to the least recently acce
| K [] | All keys in the buffer, listed from the most to the least recently accessed.|
**Example**
+
```js
let pro = new util.LruBuffer();
pro.put(2,10);
@@ -3757,7 +3778,7 @@ Removes the specified key and its value from this buffer.
> **NOTE**
>
-> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [remove9+](#remove9) instead.
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [LRUCache.remove9+](#remove9) instead.
**System capability**: SystemCapability.Utils.Lang
@@ -3788,7 +3809,7 @@ Performs subsequent operations after a value is removed.
> **NOTE**
>
-> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [afterRemoval9+](#afterremoval9) instead.
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [LRUCache.afterRemoval9+](#afterremoval9) instead.
**System capability**: SystemCapability.Utils.Lang
@@ -3796,7 +3817,7 @@ Performs subsequent operations after a value is removed.
| Name| Type| Mandatory| Description|
| -------- | -------- | -------- | -------- |
-| isEvict | boolean | Yes| Whether the buffer capacity is insufficient. If the value is **true**, this method is called due to insufficient capacity.|
+| isEvict | boolean | Yes| Whether the buffer capacity is insufficient. If the value is **true**, this API is called due to insufficient capacity.|
| key | K | Yes| Key removed.|
| value | V | Yes| Value removed.|
| newValue | V | Yes| New value for the key if the **put()** method is called and the key to be added already exists. In other cases, this parameter is left blank.|
@@ -3832,7 +3853,7 @@ Checks whether this buffer contains the specified key.
> **NOTE**
>
-> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [contains9+](#contains9) instead.
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [LRUCache.contains9+](#contains9) instead.
**System capability**: SystemCapability.Utils.Lang
@@ -3864,7 +3885,7 @@ Creates a value if the value of the specified key is not available.
> **NOTE**
>
-> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [createDefault9+](#createdefault9) instead.
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [LRUCache.createDefault9+](#createdefault9) instead.
**System capability**: SystemCapability.Utils.Lang
@@ -3895,7 +3916,7 @@ Obtains a new iterator object that contains all key-value pairs in this object.
> **NOTE**
>
-> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [entries9+](#entries9) instead.
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [LRUCache.entries9+](#entries9) instead.
**System capability**: SystemCapability.Utils.Lang
@@ -3921,7 +3942,7 @@ Obtains a two-dimensional array in key-value pairs.
> **NOTE**
>
-> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [Symbol.iterator9+](#symboliterator9) instead.
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [LRUCache.Symbol.iterator9+](#symboliterator9) instead.
**System capability**: SystemCapability.Utils.Lang
@@ -3953,7 +3974,7 @@ A constructor used to create a **Scope** object with the specified upper and low
> **NOTE**
>
-> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [constructor9+](#constructor9) instead.
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [ScopeHelper.constructor9+](#constructor9-4) instead.
**System capability**: SystemCapability.Utils.Lang
@@ -3980,7 +4001,7 @@ Obtains a string representation that contains this **Scope**.
> **NOTE**
>
-> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [toString9+](#tostring9) instead.
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [ScopeHelper.toString9+](#tostring9-1) instead.
**System capability**: SystemCapability.Utils.Lang
@@ -4007,7 +4028,7 @@ Obtains the intersection of this **Scope** and the given **Scope**.
> **NOTE**
>
-> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [intersect9+](#intersect9) instead.
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [ScopeHelper.intersect9+](#intersect9) instead.
**System capability**: SystemCapability.Utils.Lang
@@ -4043,7 +4064,7 @@ Obtains the intersection of this **Scope** and the given lower and upper limits.
> **NOTE**
>
-> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [intersect9+](#intersect9) instead.
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [ScopeHelper.intersect9+](#intersect9-1) instead.
**System capability**: SystemCapability.Utils.Lang
@@ -4079,7 +4100,7 @@ Obtains the upper limit of this **Scope**.
> **NOTE**
>
-> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [getUpper9+](#getupper9) instead.
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [ScopeHelper.getUpper9+](#getupper9) instead.
**System capability**: SystemCapability.Utils.Lang
@@ -4106,7 +4127,7 @@ Obtains the lower limit of this **Scope**.
> **NOTE**
>
-> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [getLower9+](#getlower9) instead.
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [ScopeHelper.getLower9+](#getlower9) instead.
**System capability**: SystemCapability.Utils.Lang
@@ -4133,7 +4154,7 @@ Obtains the union set of this **Scope** and the given lower and upper limits.
> **NOTE**
>
-> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [expand9+](#expand9) instead.
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [ScopeHelper.expand9+](#expand9) instead.
**System capability**: SystemCapability.Utils.Lang
@@ -4169,7 +4190,7 @@ Obtains the union set of this **Scope** and the given **Scope**.
> **NOTE**
>
-> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [expand9+](#expand9) instead.
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [ScopeHelper.expand9+](#expand9-1) instead.
**System capability**: SystemCapability.Utils.Lang
@@ -4205,7 +4226,7 @@ Obtains the union set of this **Scope** and the given value.
> **NOTE**
>
-> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [expand9+](#expand9) instead.
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [ScopeHelper.expand9+](#expand9-2) instead.
**System capability**: SystemCapability.Utils.Lang
@@ -4239,7 +4260,7 @@ Checks whether a value is within this **Scope**.
> **NOTE**
>
-> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [contains9+](#contains9) instead.
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [ScopeHelper.contains9+](#contains9-1) instead.
**System capability**: SystemCapability.Utils.Lang
@@ -4273,7 +4294,7 @@ Checks whether a range is within this **Scope**.
> **NOTE**
>
-> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [contains9+](#contains9) instead.
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [ScopeHelper.contains9+](#contains9-2) instead.
**System capability**: SystemCapability.Utils.Lang
@@ -4310,7 +4331,7 @@ Limits a value to this **Scope**.
> **NOTE**
>
-> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [clamp9+](#clamp9) instead.
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [ScopeHelper.clamp9+](#clamp9) instead.
**System capability**: SystemCapability.Utils.Lang
@@ -4351,7 +4372,7 @@ A constructor used to create a **Base64** object.
> **NOTE**
>
-> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [constructor9+](#constructor9) instead.
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [Base64Helper.constructor9+](#constructor9-5) instead.
**System capability**: SystemCapability.Utils.Lang
@@ -4369,7 +4390,7 @@ Encodes the input content.
> **NOTE**
>
-> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [encodeSync9+](#encodesync9) instead.
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [Base64Helper.encodeSync9+](#encodesync9) instead.
**System capability**: SystemCapability.Utils.Lang
@@ -4401,7 +4422,7 @@ Encodes the input content.
> **NOTE**
>
-> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [encodeToStringSync9+](#encodetostringsync9) instead.
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [Base64Helper.encodeToStringSync9+](#encodetostringsync9) instead.
**System capability**: SystemCapability.Utils.Lang
@@ -4433,7 +4454,7 @@ Decodes the input content.
> **NOTE**
>
-> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [decodeSync9+](#decodesync9) instead.
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [Base64Helper.decodeSync9+](#decodesync9) instead.
**System capability**: SystemCapability.Utils.Lang
@@ -4465,7 +4486,7 @@ Encodes the input content asynchronously.
> **NOTE**
>
-> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [encode9+](#encode9) instead.
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [Base64Helper.encode9+](#encode9) instead.
**System capability**: SystemCapability.Utils.Lang
@@ -4502,7 +4523,7 @@ Encodes the input content asynchronously.
> **NOTE**
>
-> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [encodeToString9+](#encodetostring9) instead.
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [Base64Helper.encodeToString9+](#encodetostring9) instead.
**System capability**: SystemCapability.Utils.Lang
@@ -4537,7 +4558,7 @@ Decodes the input content asynchronously.
> **NOTE**
>
-> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [decode9+](#decode9) instead.
+> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [Base64Helper.decode9+](#decode9) instead.
**System capability**: SystemCapability.Utils.Lang
@@ -4565,5 +4586,3 @@ Decodes the input content asynchronously.
}
})
```
-
-