mirror of
https://github.com/oliverbooth/X10D
synced 2024-11-09 23:25:43 +00:00
parent
16fb54da31
commit
b7514fdead
@ -179,14 +179,27 @@
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Determines if all alpha characters in this string are considered lowercase.
|
/// Determines if all alpha characters in this string are considered lowercase.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="str">The input string.</param>
|
/// <param name="value">The input string.</param>
|
||||||
/// <returns>
|
/// <returns>
|
||||||
/// Returns <see langword="true" /> if all alpha characters are lowercase, <see langword="false" />
|
/// Returns <see langword="true" /> if all alpha characters are lowercase, <see langword="false" />
|
||||||
/// otherwise.
|
/// otherwise.
|
||||||
/// </returns>
|
/// </returns>
|
||||||
public static bool IsLower(this string str)
|
public static bool IsLower(this string value)
|
||||||
{
|
{
|
||||||
return str.Where(char.IsLetter).All(char.IsLower);
|
for (var index = 0; index < value.Length; index++)
|
||||||
|
{
|
||||||
|
if (!char.IsLetter(value[index]))
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!char.IsLower(value[index]))
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user