文件最后提交记录最后更新时间
IssueNo: #I6AQ1G:UtilStringCodec升级Stage模型 Description: UtilStringCodec Upgrade Stage Model. Sig: SIG_samples Feature or Bugfix: Feature Binary Source: No Signed-off-by: zwx1094577 <zhongyuyan1@huawei.com> 3 年前
!2294 【0230】crash与功能问题修复 * Note与jscrash问题修复 3 年前
add new folder Signed-off-by: guojin31 <guojin31@huawei.com> 3 年前
description: Add build-profile.json5 ! Sig: SIG_Sample Feature or Bugfix: Bugfix Binary Source: No Signed-off-by: taobohao <taobohao@huawei.com> 3 年前
add new folder Signed-off-by: guojin31 <guojin31@huawei.com> 3 年前
IssueNo: #I6AQ1G:UtilStringCodec升级Stage模型 Description: UtilStringCodec Upgrade Stage Model. Sig: SIG_samples Feature or Bugfix: Feature Binary Source: No Signed-off-by: zwx1094577 <zhongyuyan1@huawei.com> 3 年前
!2276 230sample问题修复 * Merge branch 'samples_monthly_20230230' of gitee.com:openharmony/appli… * 230sample问题修复 * sample编译问题修复 3 年前
IssueNo: #I6AQ1G:UtilStringCodec升级Stage模型 Description: UtilStringCodec Upgrade Stage Model. Sig: SIG_samples Feature or Bugfix: Feature Binary Source: No Signed-off-by: zwx1094577 <zhongyuyan1@huawei.com> 3 年前
IssueNo: #I6AQ1G:UtilStringCodec升级Stage模型 Description: UtilStringCodec Upgrade Stage Model. Sig: SIG_samples Feature or Bugfix: Feature Binary Source: No Signed-off-by: zwx1094577 <zhongyuyan1@huawei.com> 3 年前
README.md

String Encoding and Decoding

Introduction

This sample shows how to output strings in a specified format and obtain error messages corresponding to error codes. It also demonstrates string encoding and decoding. The sample app is as follows.

Functions

  1. Output in a specified format: You can use the app to output a string in different formats.

  2. Error code parsing: You can input an error code in the app to obtain the corresponding error message.

  3. Text encoding and decoding: You can use the app to encode and decode strings.

Required Permissions

N/A

Usage

  1. Touch Output in specified format. Your input is then displayed in different formats, such as integer, floating point number, and string.

  2. Touch Obtain error details. The error message corresponding to the error code is displayed in the text box on each line.

  3. Touch Text encoder. Your input is then encoded and displayed, together with the information about data reading and writing.

  4. Touch Text decoder. The encoded text content is decoded, and the output displayed is the same as what you input.

Constraints

  1. This sample can only be run on standard-system devices.

  2. This sample requires DevEco Studio 3.0 Beta4 (Build Version: 3.0.0.992, built on July 14, 2022) to compile and run.