/ohos5.0/commonlibrary/ets_utils/js_util_module/util/ |
H A D | js_textdecoder.cpp | 34 TextDecoder::TextDecoder(const std::string &buff, std::vector<int> optionVec) in TextDecoder() function in OHOS::Util::TextDecoder 58 napi_value TextDecoder::Decode(napi_env env, napi_value src, bool iflag) in Decode() 115 napi_value TextDecoder::DecodeToString(napi_env env, napi_value src, bool iflag) in DecodeToString() 168 napi_value TextDecoder::GetEncoding(napi_env env) const in GetEncoding() 176 napi_value TextDecoder::GetFatal(napi_env env) const in GetFatal() 190 napi_value TextDecoder::GetIgnoreBOM(napi_env env) const in GetIgnoreBOM() 204 size_t TextDecoder::GetMinByteSize() const in GetMinByteSize() 213 void TextDecoder::Reset() const in Reset() 221 void TextDecoder::FreedMemory(UChar *&pData) in FreedMemory() 263 napi_value TextDecoder::ThrowError(napi_env env, const char* errMessage) in ThrowError() [all …]
|
H A D | js_textdecoder.h | 40 class TextDecoder { 57 TextDecoder(const std::string &buff, std::vector<int> optionVec); 62 virtual ~TextDecoder() {} in ~TextDecoder()
|
H A D | native_module_util.cpp | 439 auto objectInfo = new (std::nothrow) TextDecoder(enconding, paraVec); in TextdecoderConstructor() 447 auto objInfo = reinterpret_cast<TextDecoder*>(data); in TextdecoderConstructor() 470 TextDecoder *textDecoder = nullptr; in DecodeToString() 523 TextDecoder *textDecoder = nullptr; in TextdecoderDecode() 573 TextDecoder *textDecoder = nullptr; in TextdecoderGetEncoding() 583 TextDecoder *textDecoder = nullptr; in TextdecoderGetFatal() 593 TextDecoder *textDecoder = nullptr; in TextdecoderGetIgnoreBOM()
|
/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_5.0.0.35/ |
H A D | changelogs-arkts.md | 3 ## cl.arkts.1 util.TextDecoder模块ignoreBOM功能行为变更 11 util.TextDecoder模块ignoreBOM参数未使能,无法对存在BOM标记的数据进行正常解析。 27 为确保版本之间的兼容性,对util.TextDecoder模块ignoreBOM使能的相关接口进行废弃,并新增对应方法。 30 | util.TextDecoder | decodeWithStream(input: Uint8Array, options?: DecodeWithStreamOptions): string… 46 let textDecoder = util.TextDecoder.create('utf-8', textDecoderOptions);
|
/ohos5.0/docs/zh-cn/application-dev/arkts-utils/ |
H A D | xml-generation.md | 65 4. 使用Uint8Array操作Arraybuffer,调用TextDecoder对Uint8Array解码后输出。 69 let textDecoder: util.TextDecoder = util.TextDecoder.create(); // 调用util模块的TextDecoder类
|
/ohos5.0/docs/en/release-notes/changelogs/OpenHarmony_5.0.0.35/ |
H A D | changelogs-arkts.md | 3 ## cl.arkts.1 Behavior of the ignoreBOM Feature of the util.TextDecoder Module Changed 11 The ignoreBOM feature of the **util.TextDecoder** module is not enabled. As a result, data with BOM… 27 To ensure version compatibility, the API related to the ignoreBOM feature of the **util.TextDecoder… 30 | util.TextDecoder | decodeWithStream(input: Uint8Array, options?: DecodeWithStreamOptions): string… 46 let textDecoder = util.TextDecoder.create('utf-8', textDecoderOptions);
|
/ohos5.0/commonlibrary/ets_utils/js_util_module/util/src/ |
H A D | util_js.ts | 18 TextDecoder: TextDecoder; 682 interface TextDecoder { 686 class TextDecoder { 688 textDecoder: TextDecoder; 701 TextDecoder.encodeStr = 'utf-8'; 702 return new TextDecoder(); 707 TextDecoder.encodeStr = encoding; 708 return new TextDecoder(encoding); 716 TextDecoder.encodeStr = encoding; 717 return new TextDecoder(encoding, options); [all …]
|
/ohos5.0/docs/en/application-dev/arkts-utils/ |
H A D | xml-generation.md | 65 4. Use **Uint8Array** to operate the object of the ArrayBuffer type, and use **TextDecoder** to dec… 69 …let textDecoder: util.TextDecoder = util.TextDecoder.create(); // Call the TextDecoder class of th…
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkts/ |
H A D | js-apis-xml.md | 96 let result = util.TextDecoder.create().decodeToString(uint8); 137 let result = util.TextDecoder.create().decodeToString(uint8); 160 let result = util.TextDecoder.create().decodeToString(uint8); 206 let result = util.TextDecoder.create().decodeToString(uint8); 236 let result = util.TextDecoder.create().decodeToString(uint8); 281 let result = util.TextDecoder.create().decodeToString(uint8); 319 let result = util.TextDecoder.create().decodeToString(uint8); 360 let result = util.TextDecoder.create().decodeToString(uint8); 400 let result = util.TextDecoder.create().decodeToString(uint8); 437 let result = util.TextDecoder.create().decodeToString(uint8);
|
H A D | js-apis-util.md | 808 ## TextDecoder section 810 TextDecoder用于将字节数组解码为字符串,可以处理多种编码格式,包括utf-8、utf-16le/be、iso-8859和windows-1251等不同的编码格式。 828 TextDecoder的构造函数。 837 let textDecoder = new util.TextDecoder(); 844 static create(encoding?: string, options?: TextDecoderOptions): TextDecoder 874 let textDecoder = util.TextDecoder.create('utf-8', textDecoderOptions); 921 let textDecoder = util.TextDecoder.create('utf-8', textDecoderOptions); 973 let textDecoder = util.TextDecoder.create('utf-8', textDecoderOptions); 991 TextDecoder的构造函数。 1016 let textDecoder = new util.TextDecoder("utf-8",{ignoreBOM: true}); [all …]
|
/ohos5.0/docs/zh-cn/application-dev/faqs/ |
H A D | faqs-file-management.md | 52 读取文件内容的buffer数据后,通过\@ohos.util的TextDecoder对文件内容进行解码。 59 let textDecoder = util.TextDecoder.create('utf-8', { ignoreBOM: true })
|
H A D | faqs-arkui-arkts.md | 461 通过util工具函数模块中的TextEncoder和TextDecoder进行解码。 465 [TextEncoder](../reference/apis-arkts/js-apis-util.md#textencoder)、[TextDecoder](../reference/apis-… 567 let textDecoder = util.TextDecoder.create("utf-8",{ignoreBOM: true})
|
/ohos5.0/commonlibrary/ets_utils/js_util_module/util/test/ |
H A D | test_util.cpp | 897 OHOS::Util::TextDecoder textDecoder(str, inputVec); 933 OHOS::Util::TextDecoder textDecoder(str, inputVec); 969 OHOS::Util::TextDecoder textDecoder(str, inputVec); 1004 OHOS::Util::TextDecoder textDecoder(str, inputVec); 1040 OHOS::Util::TextDecoder textDecoder(str, inputVec); 1062 OHOS::Util::TextDecoder textDecoder(str, inputVec); 1084 OHOS::Util::TextDecoder textDecoder(str, inputVec); 1106 OHOS::Util::TextDecoder textDecoder(str, inputVec); 1128 OHOS::Util::TextDecoder textDecoder(str, inputVec); 1150 OHOS::Util::TextDecoder textDecoder(str, inputVec); [all …]
|
/ohos5.0/docs/en/application-dev/reference/apis-arkts/ |
H A D | js-apis-xml.md | 96 let result = util.TextDecoder.create().decodeToString(uint8); 137 let result = util.TextDecoder.create().decodeToString(uint8); 160 let result = util.TextDecoder.create().decodeToString(uint8); 206 let result = util.TextDecoder.create().decodeToString(uint8); 236 let result = util.TextDecoder.create().decodeToString(uint8); 281 let result = util.TextDecoder.create().decodeToString(uint8); 319 let result = util.TextDecoder.create().decodeToString(uint8); 360 let result = util.TextDecoder.create().decodeToString(uint8); 400 let result = util.TextDecoder.create().decodeToString(uint8); 437 let result = util.TextDecoder.create().decodeToString(uint8);
|
/ohos5.0/docs/en/application-dev/faqs/ |
H A D | faqs-file-management.md | 52 After the buffer data of the file is read, use **TextDecoder** of @ohos.util to decode the file con… 59 let textDecoder = util.TextDecoder.create('utf-8', { ignoreBOM: true })
|
H A D | faqs-arkui-arkts.md | 457 You can use **TextEncoder** and **TextDecoder** provided by the **util** module. 461 [TextEncoder](../reference/apis-arkts/js-apis-util.md#textencoder), [TextDecoder](../reference/apis… 563 let textDecoder = util.TextDecoder.create("utf-8",{ignoreBOM: true})
|
/ohos5.0/docs/zh-cn/application-dev/security/AssetStoreKit/ |
H A D | asset-js-query.md | 63 let textDecoder = util.TextDecoder.create("utf-8", { ignoreBOM: true });
|
H A D | asset-js-query-auth.md | 97 let textDecoder = util.TextDecoder.create("utf-8", { ignoreBOM: true });
|
/ohos5.0/docs/zh-cn/application-dev/database/ |
H A D | data-persistence-by-preferences.md | 131 let textDecoder = util.TextDecoder.create('utf-8');
|
/ohos5.0/docs/zh-cn/release-notes/api-diff/v4.0-Release to v3.2-Release/ |
H A D | js-apidiff-compiler-and-runtime.md | 275 |跨平台能力有变化|类名:TextDecoder;<br>方法or属性:class TextDecoder<br>旧版本信息:|类名:TextDecoder;<br>方法or属性:class Tex… 276 |跨平台能力有变化|类名:TextDecoder;<br>方法or属性:readonly encoding: string;<br>旧版本信息:|类名:TextDecoder;<br>方法or属性:… 277 |跨平台能力有变化|类名:TextDecoder;<br>方法or属性:readonly fatal: boolean;<br>旧版本信息:|类名:TextDecoder;<br>方法or属性:re… 278 |跨平台能力有变化|类名:TextDecoder;<br>方法or属性:readonly ignoreBOM = false;<br>旧版本信息:|类名:TextDecoder;<br>方法or属性… 279 |跨平台能力有变化|类名:TextDecoder;<br>方法or属性:constructor();<br>旧版本信息:|类名:TextDecoder;<br>方法or属性:constructor(… 284 …TextDecoder;<br>方法or属性:static create(encoding?: string, options?: { fatal?: boolean; ignoreBOM?: b… 285 |跨平台能力有变化|类名:TextDecoder;<br>方法or属性:decodeWithStream(input: Uint8Array, options?: { stream?: boolea…
|
/ohos5.0/docs/zh-cn/application-dev/quick-start/ |
H A D | arkts-mvvm-V2.md | 596 let textDecoder = util.TextDecoder.create('utf-8',textDecoderOptions); 751 let textDecoder = util.TextDecoder.create('utf-8',textDecoderOptions); 928 let textDecoder = util.TextDecoder.create('utf-8',textDecoderOptions);
|
/ohos5.0/docs/zh-cn/release-notes/api-diff/v3.2-beta3/ |
H A D | js-apidiff-compiler-and-runtime.md | 89 | ohos.util | TextDecoder | decodeWithStream(input: Uint8Array, options?: { stream?: boolean }): …
|
/ohos5.0/docs/en/release-notes/api-diff/v3.2-beta3/ |
H A D | js-apidiff-compiler-and-runtime.md | 89 | ohos.util | TextDecoder | decodeWithStream(input: Uint8Array, options?: { stream?: boolean }): …
|
/ohos5.0/docs/zh-cn/release-notes/api-diff/v3.2-Release/ |
H A D | js-apidiff-compiler-and-runtime.md | 44 |新增|NA|类名:TextDecoder;<br>方法or属性:constructor();|@ohos.util.d.ts| 180 …TextDecoder;<br>方法or属性:static create(<br><br> encoding?: string,<br><br> opt… 181 |新增|NA|类名:TextDecoder;<br>方法or属性:decodeWithStream(input: Uint8Array, options?: { stream?: boolean }… 239 …TextDecoder;<br>方法or属性:constructor(<br><br> encoding?: string,<br><br> optio… 240 |废弃版本有变化|类名:TextDecoder;<br>方法or属性:decode(input: Uint8Array, options?: { stream?: false }): string;…
|
/ohos5.0/commonlibrary/ets_utils/ |
H A D | README.en.md | 450 …ncoder**: provides APIs to encode a string into a UTF-8 byte stream. **TextDecoder**: provides API… 460 ├── Class:TextDecoder # TextDecoder class 461 │ ├── new TextDecoder() # Used to create a TextDecoder object 576 | constructor(encoding? : string) | A constructor used to create a **TextDecoder** object. **encodi… 580 …? : boolean, ignoreBOM? : boolean}) | A constructor used to create a **TextDecoder** object. **enc…
|