init commit

This commit is contained in:
路 范
2022-03-30 17:54:33 +08:00
parent df01841625
commit 904bdd16cd
500 changed files with 217251 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
using System.Text.RegularExpressions;
namespace RoadFlow.Pinyin
{
/// <summary>
/// 拼音工具类
/// </summary>
public static class PinyinUtil
{
/// <summary>
/// 判断字符是否是汉字
/// </summary>
/// <param name="ch">要判断的字符</param>
/// <returns></returns>
public static bool IsHanzi(char ch)
{
return Regex.IsMatch(ch.ToString(), @"[\u4e00-\u9fbb]");
}
}
}