摘要:
通过网上汉字转换成拼音的代码,经过本人优化,性能将更加优异。下面将源代码贴出。[csharp]view plaincopypublicstaticclassChineseToPinYin{privatestaticreadonlyDictionary<int,string>CodeCollections=newDictionary<int,string>{{-20319,"a"},{-20317,"ai"},{-20304,"an"},{-20295,"ang"},{-20292," 阅读全文
摘要:
可以将汉字字符串的首字母提取出来,例如:产品名称:蒙牛酸酸乳,提取后:MNSSR,可用于按照拼音查询。比如:你想查询某人姓名,只需输入名字缩写即可,还有其它的用处,你可以自己挖掘。如果觉得对你有用,别忘了顶一下,谢谢![csharp]view plaincopyprint?usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Web;namespaceBIReportCenter.UI.ReportAdmin.WebUtilities{publicclassChineseString{publicsta 阅读全文