文件最后提交记录最后更新时间
!1039 适配横屏、修改992版本IDE编译报错、bug修复 * bugfix 3 年前
!1091 删除中文输入法3 * delete sample 3 年前
!962 翻译完成:全量翻译---StringCodec * added utilstringcodec readme EN 3 年前
!1091 删除中文输入法3 * delete sample 3 年前
!607 工程适配以及一些README里边的格式调整 * [style]:[修改JsSvg码多出空行问题] * [fix|chore]:[工程适配以及README格式修改] * Merge branch 'master' of gitee.com:liuyuhang12/app_samples * [chore]:[工程适配API7到API8适配] * Merge branch 'master' of gitee.com:liuyuhang12/app_samples * [fix]:[屏幕截图README里边ets应改为eTS] * 删掉不需要上传的文件 * 解决冲突 * [fix]:[修改测试出的问题] * [chore]:[工程适配] 4 年前
!607 工程适配以及一些README里边的格式调整 * [style]:[修改JsSvg码多出空行问题] * [fix|chore]:[工程适配以及README格式修改] * Merge branch 'master' of gitee.com:liuyuhang12/app_samples * [chore]:[工程适配API7到API8适配] * Merge branch 'master' of gitee.com:liuyuhang12/app_samples * [fix]:[屏幕截图README里边ets应改为eTS] * 删掉不需要上传的文件 * 解决冲突 * [fix]:[修改测试出的问题] * [chore]:[工程适配] 4 年前
!982 适配991,image规避文件沙箱对文件命名作出限制 * update picture * update 991 and bugfix image 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. DevEco Studio 3.0 Beta3 (Build Version: 3.0.0.901, built on May 30, 2022) must be used.