Char.IsLower 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
表示 Unicode 字元是否被歸類為小寫字母。
多載
| 名稱 | Description |
|---|---|
| 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)
- 來源:
- Char.cs
- 來源:
- Char.cs
- 來源:
- Char.cs
- 來源:
- Char.cs
- 來源:
- 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 字元。
傳回
true 若 c 為小寫字母;否則為 false。
備註
有效的小寫字母屬於下列類別 UnicodeCategory: LowercaseLetter。
另請參閱
適用於
IsLower(String, Int32)
- 來源:
- Char.cs
- 來源:
- Char.cs
- 來源:
- Char.cs
- 來源:
- Char.cs
- 來源:
- 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若 中index位置s的字元為小寫字母;否則 。 false
例外狀況
s 是 null。
index 小於零或大於中 s最後一個位置。
備註
字串中的字元位置從零開始索引。
有效的小寫字母屬於下列類別 UnicodeCategory: LowercaseLetter。