/// <summary> /// 把汉字转化为拼音 /// </summary> /// <param name="strText"></param> /// <returns></returns> public static string ChangeChangChineseSpell(this string strText) { return(ChineseSpell.ChangChineseSpell(strText)); }
/// <summary> /// 获得一个字符串的汉语拼音码[南京 yyf] /// </summary> /// <param name="strText">字符串</param> /// <returns>汉语拼音码,该字符串只包含大写的英文字母</returns> public static string ToChineseSpell(this string strText) { return(ChineseSpell.GetChineseSpell(strText)); }