Char.IsUpper 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
指示 Unicode 字符是否归类为大写字母。
重载
| 名称 | 说明 |
|---|---|
| IsUpper(Char) |
指示指定的 Unicode 字符是否归类为大写字母。 |
| IsUpper(String, Int32) |
指示指定字符串中指定位置处的字符是否归类为大写字母。 |
IsUpper(Char)
- Source:
- Char.cs
- Source:
- Char.cs
- Source:
- Char.cs
- Source:
- Char.cs
- Source:
- Char.cs
指示指定的 Unicode 字符是否归类为大写字母。
public:
static bool IsUpper(char c);
public static bool IsUpper(char c);
static member IsUpper : char -> bool
Public Shared Function IsUpper (c As Char) As Boolean
参数
- c
- Char
要计算的 Unicode 字符。
返回
true 如果 c 为大写字母,则为 。否则为 false。
注解
有效的大写字母是以下类别的成员UnicodeCategory: UppercaseLetter
另请参阅
适用于
IsUpper(String, Int32)
- Source:
- Char.cs
- Source:
- Char.cs
- Source:
- Char.cs
- Source:
- Char.cs
- Source:
- Char.cs
指示指定字符串中指定位置处的字符是否归类为大写字母。
public:
static bool IsUpper(System::String ^ s, int index);
public static bool IsUpper(string s, int index);
static member IsUpper : string * int -> bool
Public Shared Function IsUpper (s As String, index As Integer) As Boolean
参数
- s
- String
字符串。
- index
- Int32
要计算的 s字符的位置。
返回
例外
s 是 null。
index 小于零或大于最后一 s个位置。
注解
字符串中的字符位置从零开始编制索引。
有效的大写字母是以下类别的成员UnicodeCategory: UppercaseLetter