資源簡(jiǎn)介
C# 漢字轉(zhuǎn)拼音比較全的類(支持大部分漢字) 源碼下載
代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.Linq;
using?System.Text;
using?System.Text.Regularexpressions;
namespace?Kt.framework.Common.Utils
{
????///?
????///?功能:??????漢字轉(zhuǎn)拼音靜態(tài)類包括功能全拼和聲母,方法全部是靜態(tài)的不能區(qū)分多音字只完全支持GB2312-80漢字庫(kù)
????///?完成日期:??2009-04-17
????///?作者:??????adair
????///?
????public?static?class?ChineseToBopomofo
????{
????????#region?獲取漢字的首字母
????????///?
????????///?獲取漢字的首字母
????????///?
????????///?漢字
????????///?漢字的首字母
????????public?static?String?IndexCode(String?IndexTxt)
????????{
????????????String?temp?=?null;
????????????for?(int?i?=?0;?i?????????????????temp?=?temp?+?GetOneIndex(IndexTxt.Substring(i?1));
????????
- 上一篇:C# Socket 客戶端服務(wù)器通信demo
- 下一篇:采集軟件源碼
評(píng)論
共有 條評(píng)論