*.[新增]新增函数IsEng来判断字符串是否是英文
This commit is contained in:
parent
5084054674
commit
b7075a3b55
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -958,6 +958,13 @@
|
|||
<param name="str"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:ryCommon.Strings.IsEng(System.String)">
|
||||
<summary>
|
||||
判断字符串是否只包含英文
|
||||
</summary>
|
||||
<param name="str"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:ryCommon.Strings.IsMatchStr(System.String,System.String)">
|
||||
<summary>
|
||||
判断字符串是否匹配,支持?*通配符
|
||||
|
@ -1091,6 +1098,13 @@
|
|||
<param name="input"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:ryCommon.VarExtension.IsEng(System.String)">
|
||||
<summary>
|
||||
判断字符串是否是英文
|
||||
</summary>
|
||||
<param name="input"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:ryCommon.VarExtension.IsInRange(System.Decimal,System.Decimal,System.Decimal)">
|
||||
<summary>
|
||||
是否在指定范围内
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -958,6 +958,13 @@
|
|||
<param name="str"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:ryCommon.Strings.IsEng(System.String)">
|
||||
<summary>
|
||||
判断字符串是否只包含英文
|
||||
</summary>
|
||||
<param name="str"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:ryCommon.Strings.IsMatchStr(System.String,System.String)">
|
||||
<summary>
|
||||
判断字符串是否匹配,支持?*通配符
|
||||
|
@ -1091,6 +1098,13 @@
|
|||
<param name="input"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:ryCommon.VarExtension.IsEng(System.String)">
|
||||
<summary>
|
||||
判断字符串是否是英文
|
||||
</summary>
|
||||
<param name="input"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:ryCommon.VarExtension.IsInRange(System.Decimal,System.Decimal,System.Decimal)">
|
||||
<summary>
|
||||
是否在指定范围内
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,6 @@
|
|||
### 2020-12-10更新
|
||||
------
|
||||
|
||||
|
||||
#### MyDbV4 V2.1.2012.1001
|
||||
- *.[新增]新增函数IsEng来判断字符串是否是英文
|
Binary file not shown.
|
@ -280,6 +280,15 @@ namespace ryCommon
|
|||
return !Regex.IsMatch(str, "[^0-9a-zA-Z]");
|
||||
}
|
||||
/// <summary>
|
||||
/// 判断字符串是否只包含英文
|
||||
/// </summary>
|
||||
/// <param name="str"></param>
|
||||
/// <returns></returns>
|
||||
public static bool IsEng(string str)
|
||||
{
|
||||
return !Regex.IsMatch(str, "[^a-zA-Z]");
|
||||
}
|
||||
/// <summary>
|
||||
/// 判断字符串是否匹配,支持?*通配符
|
||||
/// </summary>
|
||||
/// <param name="str">待匹配的字符串</param>
|
||||
|
|
|
@ -96,6 +96,15 @@ namespace ryCommon
|
|||
return Strings.IsEngOrNum(input);
|
||||
}
|
||||
/// <summary>
|
||||
/// 判断字符串是否是英文
|
||||
/// </summary>
|
||||
/// <param name="input"></param>
|
||||
/// <returns></returns>
|
||||
static public bool IsEng(this string input)
|
||||
{
|
||||
return Strings.IsEng(input);
|
||||
}
|
||||
/// <summary>
|
||||
/// 是否在指定范围内
|
||||
/// </summary>
|
||||
/// <param name="input"></param>
|
||||
|
|
|
@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
|
|||
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值,
|
||||
// 方法是按如下所示使用“*”: :
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("2.1.2011.0901")]
|
||||
[assembly: AssemblyFileVersion("2.1.2011.0901")]
|
||||
[assembly: AssemblyVersion("2.1.2012.1001")]
|
||||
[assembly: AssemblyFileVersion("2.1.2012.1001")]
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user