From 847674097b3dfab4fe5e5229fcf45da1b2fb693e Mon Sep 17 00:00:00 2001 From: shikai-123 Date: Mon, 7 Mar 2022 15:38:54 +0800 Subject: [PATCH] Modify review message Modify code of api https://gitee.com/openharmony/js_api_module/issues/I4WO30 Signed-off-by: shikai-123 --- README.md | 8 +++----- README_zh.md | 20 +++++++++----------- build_ts_js.py | 6 ++---- convertxml/BUILD.gn | 2 +- convertxml/js_convertxml.cpp | 3 ++- convertxml/js_convertxml.h | 3 ++- convertxml/native_module_convertxml.cpp | 2 +- convertxml/src/js_convertxml.ts | 2 +- convertxml/tsconfig.json | 1 - mozilla_docs.txt | 4 ++-- test_uri/unittest/BUILD.gn | 2 +- test_uri/unittest/test.h | 2 +- test_uri/unittest/test_ark.cpp | 2 +- test_uri/unittest/test_napi.cpp | 2 +- test_xml/unittest/BUILD.gn | 2 +- test_xml/unittest/test.h | 2 +- test_xml/unittest/test_ark.cpp | 2 +- test_xml/unittest/test_xml.cpp | 2 +- uri/BUILD.gn | 2 +- uri/js_uri.cpp | 3 ++- uri/js_uri.h | 2 +- uri/native_module_uri.cpp | 3 +-- uri/src/js_uri.ts | 3 ++- uri/tsconfig.json | 1 - url/BUILD.gn | 2 +- url/js_url.cpp | 3 ++- url/js_url.h | 3 ++- url/native_module_url.cpp | 2 +- url/src/js_url.ts | 2 +- url/tsconfig.json | 1 - xml/BUILD.gn | 2 +- xml/js_xml.cpp | 8 ++++---- xml/js_xml.h | 5 +++-- xml/native_module_xml.cpp | 2 +- xml/src/js_xml.ts | 2 +- xml/tsconfig.json | 1 - 36 files changed, 55 insertions(+), 59 deletions(-) diff --git a/README.md b/README.md index e07f173..df77cc6 100755 --- a/README.md +++ b/README.md @@ -210,7 +210,7 @@ console.log(params.toString()); ``` 8、has(name: string): boolean ``` -console.log(params.has('bar')); // =>ture +console.log(params.has('bar')); // =>true ``` 9、set(name: string, value string): void ``` @@ -274,7 +274,7 @@ for (const [name, value] of params) { } // Prints: // foo bar -// xyz ba +// xyz bar ``` @@ -454,9 +454,7 @@ var options = {supportDoctype:true, ignoreNameSpace:true, tokenValueCallbackFunc that.parse(options); ``` ## Related warehouse -[js_api_module Subsystem](https://gitee.com/OHOS_STD/js_api_module) - -[base/compileruntime/js_api_module/](base/compileruntime/js_api_module-readme.md) +[js_api_module Subsystem](base/compileruntime/js_api_module-readme.md) ## License diff --git a/README_zh.md b/README_zh.md index f5fd90e..1f8513f 100755 --- a/README_zh.md +++ b/README_zh.md @@ -106,7 +106,7 @@ base/compileruntime/js_api_module/ | new URLSearchParams(string) | URLSearchParams(string) 构造器的入参为string数据类型,该方法创建并返回一个新的URLSearchParams 对象。 开头的'?' 字符会被忽略。 | | new URLSearchParams(obj) | URLSearchParams(obj) 构造器的入参为obj数据类型,该方法创建并返回一个新的URLSearchParams 对象。 开头的'?' 字符会被忽略。 | | new URLSearchParams(iterable) | URLSearchParams(iterable) 构造器的入参为iterable数据类型,该方法创建并返回一个新的URLSearchParams 对象。 开头的'?' 字符会被忽略。 | -| has(name: string): boolean | 检索searchParams对象中是否含有name。有则返回ture,否则返回false。 | +| has(name: string): boolean | 检索searchParams对象中是否含有name。有则返回true,否则返回false。 | | set(name: string, value string): void | 检索searchParams对象中是否含有key为name的键值对。没有的话则添加该键值对,有的话则修改对象中第一个key所对应的value,并删除键为name的其余键值对。 | | sort(): void | 根据键的Unicode代码点,对包含在此对象中的所有键/值对进行排序,并返回undefined。 | | toString(): string | 根据searchParams对象,返回适用在URL中的查询字符串。 | @@ -209,7 +209,7 @@ console.log(params.toString()); ``` 8、has(name: string): boolean ``` -console.log(params.has('bar')); // =>ture +console.log(params.has('bar')); // =>true ``` 9、set(name: string, value string): void ``` @@ -273,7 +273,7 @@ for (const [name, value] of params) { } // Prints: // foo bar -// xyz ba +// xyz bar ``` @@ -413,8 +413,8 @@ var strXml = '' + '' + ' Happy' + - ' Work' + - ' Play' + + ' Work' + + ' Play' + ''; var arrayBuffer = new ArrayBuffer(strXml.length*2); var bufView = new Uint8Array(arrayBuffer); @@ -431,8 +431,8 @@ var strXml = '' + '' + ' Happy' + - ' Work' + - ' Play' + + ' Work' + + ' Play' + ''; var arrayBuffer = new ArrayBuffer(strXml.length*2); var bufView = new Uint8Array(arrayBuffer); @@ -451,11 +451,9 @@ function func(key, value){ } var options = {supportDoctype:true, ignoreNameSpace:true, tokenValueCallbackFunction:func} that.parse(options); - +``` ## 相关仓 -[js_api_module子系统](https://gitee.com/OHOS_STD/js_api_module) - -[base/compileruntime/js_api_module/](base/compileruntime/js_api_module/readme.md) +[js_api_module子系统](base/compileruntime/js_api_module/readme.md) ### 许可证 diff --git a/build_ts_js.py b/build_ts_js.py index 93af118..79c672f 100755 --- a/build_ts_js.py +++ b/build_ts_js.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- -# Copyright (c) 2021 Huawei Device Co., Ltd. +# Copyright (c) 2022 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -12,13 +12,13 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. + import os import shutil import platform import argparse import subprocess - def run_command(in_cmd): print(" ".join(in_cmd)) proc = subprocess.Popen(in_cmd, stdout=subprocess.PIPE, @@ -30,8 +30,6 @@ def run_command(in_cmd): raise Exception(stdout) if __name__ == '__main__': - - PARSER_INST = argparse.ArgumentParser() PARSER_INST.add_argument('--dst-file', help='the converted target file') diff --git a/convertxml/BUILD.gn b/convertxml/BUILD.gn index 6e08cb0..c3b1552 100755 --- a/convertxml/BUILD.gn +++ b/convertxml/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2021 Huawei Device Co., Ltd. +# Copyright (c) 2022 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at diff --git a/convertxml/js_convertxml.cpp b/convertxml/js_convertxml.cpp index 351c53a..0c2d85e 100755 --- a/convertxml/js_convertxml.cpp +++ b/convertxml/js_convertxml.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -12,6 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + #include "js_convertxml.h" #include "securec.h" #include "utils/log.h" diff --git a/convertxml/js_convertxml.h b/convertxml/js_convertxml.h index a72c988..ca3e71f 100755 --- a/convertxml/js_convertxml.h +++ b/convertxml/js_convertxml.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -12,6 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + #ifndef FOUNDATION_ACE_CCRUNTIME_CONVERT_XML_CLASS_H #define FOUNDATION_ACE_CCRUNTIME_CONVERT_XML_CLASS_H diff --git a/convertxml/native_module_convertxml.cpp b/convertxml/native_module_convertxml.cpp index e1320a5..2b87503 100755 --- a/convertxml/native_module_convertxml.cpp +++ b/convertxml/native_module_convertxml.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/convertxml/src/js_convertxml.ts b/convertxml/src/js_convertxml.ts index 5349a40..4366e41 100644 --- a/convertxml/src/js_convertxml.ts +++ b/convertxml/src/js_convertxml.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/convertxml/tsconfig.json b/convertxml/tsconfig.json index 825df28..eed8fd1 100644 --- a/convertxml/tsconfig.json +++ b/convertxml/tsconfig.json @@ -3,7 +3,6 @@ "target": "es6", "module": "es6", "rootDir": "./src", - //"outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If `declaration` is true, also designates a file that bundles all .d.ts output. */ "outDir": "./out", /* Specify an output folder for all emitted files. */ "esModuleInterop": true, "forceConsistentCasingInFileNames": true, diff --git a/mozilla_docs.txt b/mozilla_docs.txt index 6f40ed3..da19b3c 100644 --- a/mozilla_docs.txt +++ b/mozilla_docs.txt @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -15,7 +15,7 @@ The definitions of some interfaces implemented in jsapi/api/js_url.cpp are released under Mozilla license. -The definitions and functions of these interfaces are consistent with the standard interfaces under mozila license, +The definitions and functions of these interfaces are consistent with the standard interfaces under mozilla license, but the implementation of specific functions is independent and self-developed. All interfaces are described in d.ts, the following is the interface written in d.ts under to Mozilla license diff --git a/test_uri/unittest/BUILD.gn b/test_uri/unittest/BUILD.gn index 1142957..6a58d0f 100755 --- a/test_uri/unittest/BUILD.gn +++ b/test_uri/unittest/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2021 Huawei Device Co., Ltd. +# Copyright (c) 2022 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at diff --git a/test_uri/unittest/test.h b/test_uri/unittest/test.h index 753199c..466fd55 100755 --- a/test_uri/unittest/test.h +++ b/test_uri/unittest/test.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/test_uri/unittest/test_ark.cpp b/test_uri/unittest/test_ark.cpp index c2fc82b..a5c3dd6 100644 --- a/test_uri/unittest/test_ark.cpp +++ b/test_uri/unittest/test_ark.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/test_uri/unittest/test_napi.cpp b/test_uri/unittest/test_napi.cpp index 95a077b..933a99e 100755 --- a/test_uri/unittest/test_napi.cpp +++ b/test_uri/unittest/test_napi.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/test_xml/unittest/BUILD.gn b/test_xml/unittest/BUILD.gn index 2bcd367..9639194 100644 --- a/test_xml/unittest/BUILD.gn +++ b/test_xml/unittest/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2021 Huawei Device Co., Ltd. +# Copyright (c) 2022 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at diff --git a/test_xml/unittest/test.h b/test_xml/unittest/test.h index 753199c..466fd55 100644 --- a/test_xml/unittest/test.h +++ b/test_xml/unittest/test.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/test_xml/unittest/test_ark.cpp b/test_xml/unittest/test_ark.cpp index 3ce213c..1c855ed 100644 --- a/test_xml/unittest/test_ark.cpp +++ b/test_xml/unittest/test_ark.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/test_xml/unittest/test_xml.cpp b/test_xml/unittest/test_xml.cpp index 37d2353..9e3732a 100644 --- a/test_xml/unittest/test_xml.cpp +++ b/test_xml/unittest/test_xml.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/uri/BUILD.gn b/uri/BUILD.gn index 620e663..f1e09e8 100755 --- a/uri/BUILD.gn +++ b/uri/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2021 Huawei Device Co., Ltd. +# Copyright (c) 2022 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at diff --git a/uri/js_uri.cpp b/uri/js_uri.cpp index 100cddb..b88078f 100755 --- a/uri/js_uri.cpp +++ b/uri/js_uri.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -12,6 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + #include "js_uri.h" #include "utils/log.h" namespace OHOS::Uri { diff --git a/uri/js_uri.h b/uri/js_uri.h index 16365f8..ca350dc 100755 --- a/uri/js_uri.h +++ b/uri/js_uri.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/uri/native_module_uri.cpp b/uri/native_module_uri.cpp index 8449c60..7a09923 100755 --- a/uri/native_module_uri.cpp +++ b/uri/native_module_uri.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -13,7 +13,6 @@ * limitations under the License. */ - #include "js_uri.h" #include "securec.h" #include "utils/log.h" diff --git a/uri/src/js_uri.ts b/uri/src/js_uri.ts index 4df2233..db576bd 100644 --- a/uri/src/js_uri.ts +++ b/uri/src/js_uri.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -12,6 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + declare function requireInternal(s : string) : any; const uri = requireInternal("uri"); diff --git a/uri/tsconfig.json b/uri/tsconfig.json index eff2af4..fb2b5ce 100644 --- a/uri/tsconfig.json +++ b/uri/tsconfig.json @@ -3,7 +3,6 @@ "target": "es6", "module": "es6", "rootDir": "./src", - //"outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If `declaration` is true, also designates a file that bundles all .d.ts output. */ "outDir": "./out", /* Specify an output folder for all emitted files. */ "esModuleInterop": true, "forceConsistentCasingInFileNames": true, diff --git a/url/BUILD.gn b/url/BUILD.gn index f1e16ee..0fc9e16 100755 --- a/url/BUILD.gn +++ b/url/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2021 Huawei Device Co., Ltd. +# Copyright (c) 2022 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at diff --git a/url/js_url.cpp b/url/js_url.cpp index c4b3ef3..5f6b6ac 100755 --- a/url/js_url.cpp +++ b/url/js_url.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -12,6 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + #include "js_url.h" #include #include diff --git a/url/js_url.h b/url/js_url.h index 9530ac7..b89fb53 100755 --- a/url/js_url.h +++ b/url/js_url.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -12,6 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + #ifndef COMPILERUNTIME_JS_API_URL_H #define COMPILERUNTIME_JS_API_URL_H diff --git a/url/native_module_url.cpp b/url/native_module_url.cpp index 890c477..6e53268 100755 --- a/url/native_module_url.cpp +++ b/url/native_module_url.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/url/src/js_url.ts b/url/src/js_url.ts index e64ad2f..09e0e7f 100644 --- a/url/src/js_url.ts +++ b/url/src/js_url.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/url/tsconfig.json b/url/tsconfig.json index eff2af4..fb2b5ce 100644 --- a/url/tsconfig.json +++ b/url/tsconfig.json @@ -3,7 +3,6 @@ "target": "es6", "module": "es6", "rootDir": "./src", - //"outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If `declaration` is true, also designates a file that bundles all .d.ts output. */ "outDir": "./out", /* Specify an output folder for all emitted files. */ "esModuleInterop": true, "forceConsistentCasingInFileNames": true, diff --git a/xml/BUILD.gn b/xml/BUILD.gn index cf34b9b..fc7bf19 100644 --- a/xml/BUILD.gn +++ b/xml/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2021 Huawei Device Co., Ltd. +# Copyright (c) 2022 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at diff --git a/xml/js_xml.cpp b/xml/js_xml.cpp index d5df3ae..5e58aeb 100644 --- a/xml/js_xml.cpp +++ b/xml/js_xml.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -396,14 +396,14 @@ namespace OHOS::xml { } } - bool XmlPullParser::DealLength(size_t minimun) + bool XmlPullParser::DealLength(size_t minimum) { while (srcLinkList_->next != nullptr) { if (position_ < max_) { xmlPullParserError_ = "Unbalanced entity!"; } PopSrcLinkList(); - if (max_ - position_ >= minimun) { + if (max_ - position_ >= minimum) { return true; } } @@ -432,7 +432,7 @@ namespace OHOS::xml { } if (strXml_.size() - max_ > 0 && position_ == 0) { max_ += strXml_.size() - max_; - if (max_ >= minimun) { + if (max_ >= minimum) { return true; } } diff --git a/xml/js_xml.h b/xml/js_xml.h index ce465ba..467aab7 100644 --- a/xml/js_xml.h +++ b/xml/js_xml.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -12,6 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + #ifndef FOUNDATION_ACE_CCRUNTIME_XML_CLASS_H #define FOUNDATION_ACE_CCRUNTIME_XML_CLASS_H @@ -164,7 +165,7 @@ namespace OHOS::xml { bool IsWhitespace() const; void PushSrcLinkList(std::string strBuffer); void PopSrcLinkList(); - bool DealLength(size_t minimun); + bool DealLength(size_t minimum); void Replace(std::string &strTemp, std::string strSrc, std::string strDes) const; size_t GetNSCount(size_t iTemp); void Parse(napi_value thisVar); diff --git a/xml/native_module_xml.cpp b/xml/native_module_xml.cpp index d51aa62..6ab824a 100644 --- a/xml/native_module_xml.cpp +++ b/xml/native_module_xml.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/xml/src/js_xml.ts b/xml/src/js_xml.ts index a3d6332..9e983b9 100644 --- a/xml/src/js_xml.ts +++ b/xml/src/js_xml.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/xml/tsconfig.json b/xml/tsconfig.json index 825df28..eed8fd1 100644 --- a/xml/tsconfig.json +++ b/xml/tsconfig.json @@ -3,7 +3,6 @@ "target": "es6", "module": "es6", "rootDir": "./src", - //"outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If `declaration` is true, also designates a file that bundles all .d.ts output. */ "outDir": "./out", /* Specify an output folder for all emitted files. */ "esModuleInterop": true, "forceConsistentCasingInFileNames": true,