82

拼音工具类PinyinUtils

 6 years ago
source link: https://juejin.im/post/5a0d500d6fb9a045293650e2
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
介绍 最近在做好友列表的时候,仿照微信的好友列表,A-Z索引,需要用到好友名字的拼音,之前已经有封装好拼音的工具类,但是最近发现对于一些多音字,姓氏的处理没有做到位,比如姓氏单(shan),由于对于多音字没有做一些处理,仅仅只是取多音字列表的第一个,所以取到

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK