Skip to content

java 基本区扩展区互转函数(速度提升了6倍)

License

Notifications You must be signed in to change notification settings

Alimjan2009/uyghur_convert_util

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

java 基本区和扩展区互换函数

  1. 修复了之前 UyghurSDK 里边的转换函数速度过慢的问题

使用方法

// 从基本区转换成扩展区
String ex = UyBaseAndEx.toEx("كېڭەيتىلگەن رايون")
// 从扩展区转换成基本区
String ex = UyBaseAndEx.toBase("كېڭەيتىلگەن رايون")

效率提升

测试条件:长度 30905875的字符串

  1. 基本去转扩展区速度提升了5倍
  2. 扩展区转基本去速度提升了10倍

About

java 基本区扩展区互转函数(速度提升了6倍)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages