Char.IsLower 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
指示 Unicode 字符是否分类为小写字母。
重载
| 名称 | 说明 |
|---|---|
| IsLower(Char) |
指示指定的 Unicode 字符是否分类为小写字母。 |
| IsLower(String, Int32) |
指示指定字符串中指定位置处的字符是否归类为小写字母。 |
示例
下面的代码示例演示了 IsLower。
using System;
public class IsLowerSample {
public static void Main() {
char ch = 'a';
Console.WriteLine(Char.IsLower(ch)); // Output: "True"
Console.WriteLine(Char.IsLower("upperCase", 5)); // Output: "False"
}
}
open System
let ch = 'a'
printfn $"{Char.IsLower ch}" // Output: "True"
printfn $"""{Char.IsLower("upperCase", 5)}""" // Output: "False"
Module IsLowerSample
Sub Main()
Dim ch As Char
ch = "a"c
Console.WriteLine(Char.IsLower(ch)) ' Output: "True"
Console.WriteLine(Char.IsLower("upperCase", 5)) ' Output: "False"
End Sub
End Module
IsLower(Char)
- Source:
- Char.cs
- Source:
- Char.cs
- Source:
- Char.cs
- Source:
- Char.cs
- Source:
- Char.cs
指示指定的 Unicode 字符是否分类为小写字母。
public:
static bool IsLower(char c);
public static bool IsLower(char c);
static member IsLower : char -> bool
Public Shared Function IsLower (c As Char) As Boolean
参数
- c
- Char
要计算的 Unicode 字符。
返回
注解
有效的小写字母是以下类别的成员UnicodeCategory: LowercaseLetter
另请参阅
适用于
IsLower(String, Int32)
- Source:
- Char.cs
- Source:
- Char.cs
- Source:
- Char.cs
- Source:
- Char.cs
- Source:
- Char.cs
指示指定字符串中指定位置处的字符是否归类为小写字母。
public:
static bool IsLower(System::String ^ s, int index);
public static bool IsLower(string s, int index);
static member IsLower : string * int -> bool
Public Shared Function IsLower (s As String, index As Integer) As Boolean
参数
- s
- String
字符串。
- index
- Int32
要计算的 s字符的位置。
返回
true如果位置indexs处的字符是小写字母,则为 ;否则为 false。
例外
s 是 null。
index 小于零或大于最后一 s个位置。
注解
字符串中的字符位置从零开始编制索引。
有效的小写字母是以下类别的成员UnicodeCategory: LowercaseLetter