去除引用common.props

This commit is contained in:
2023-11-06 19:35:59 +08:00
parent 6a2154edd9
commit c6b8dfc861
810 changed files with 3910 additions and 6695 deletions

View File

@@ -108,16 +108,16 @@ public class PinyinHelper
#region
/// <summary>
/// 汉字转换成全拼的拼音.
/// </summary>
/// <param name="Chstr"></param>
/// <returns></returns>
public static string Pinyin(string Chstr)
{
// 定义拼音区编码数组
int[] getValue = new int[]
/// <summary>
/// 汉字转换成全拼的拼音.
/// </summary>
/// <param name="Chstr"></param>
/// <returns></returns>
public static string Pinyin(string Chstr)
{
// 定义拼音区编码数组
int[] getValue = new int[]
{
-20319, -20317, -20304, -20295, -20292, -20283, -20265, -20257, -20242, -20230, -20051, -20036,
-20032, -20026, -20002, -19990, -19986, -19982, -19976, -19805, -19784, -19775, -19774, -19763,
-19756, -19751, -19746, -19741, -19739, -19728, -19725, -19715, -19540, -19531, -19525, -19515,
@@ -151,11 +151,11 @@ public class PinyinHelper
-11055, -11052, -11045, -11041, -11038, -11024, -11020, -11019, -11018, -11014, -10838, -10832,
-10815, -10800, -10790, -10780, -10764, -10587, -10544, -10533, -10519, -10331, -10329, -10328,
-10322, -10315, -10309, -10307, -10296, -10281, -10274, -10270, -10262, -10260, -10256, -10254
};
};
// 定义拼音数组
string[] getName = new string[]
{
// 定义拼音数组
string[] getName = new string[]
{
"A", "Ai", "An", "Ang", "Ao", "Ba", "Bai", "Ban", "Bang", "Bao", "Bei", "Ben",
"Beng", "Bi", "Bian", "Biao", "Bie", "Bin", "Bing", "Bo", "Bu", "Ba", "Cai", "Can",
"Cang", "Cao", "Ce", "Ceng", "Cha", "Chai", "Chan", "Chang", "Chao", "Che", "Chen", "Cheng",
@@ -189,7 +189,7 @@ public class PinyinHelper
"Za", "Zai", "Zan", "Zang", "Zao", "Ze", "Zei", "Zen", "Zeng", "Zha", "Zhai", "Zhan",
"Zhang", "Zhao", "Zhe", "Zhen", "Zheng", "Zhi", "Zhong", "Zhou", "Zhu", "Zhua", "Zhuai", "Zhuan",
"Zhuang", "Zhui", "Zhun", "Zhuo", "Zi", "Zong", "Zou", "Zu", "Zuan", "Zui", "Zun", "Zuo"
};
};
// 验证是否输入汉字
Regex reg = new Regex("^[\u4e00-\u9fa5]$");