Rune.IsLetterOrDigit(Rune) 方法

定义

返回一个值,该值指示指定的 rune 属于字母类别还是十进制数字类别。Returns a value that indicates whether the specified rune is categorized as a letter or a decimal digit.

public:
 static bool IsLetterOrDigit(System::Text::Rune value);
public static bool IsLetterOrDigit (System.Text.Rune value);
static member IsLetterOrDigit : System.Text.Rune -> bool
Public Shared Function IsLetterOrDigit (value As Rune) As Boolean

参数

value
Rune

要计算的 rune。The rune to evaluate.

返回

Boolean

如果 true 是字母或十进制数,则为 value;否则为 falsetrue if value is a letter or a decimal digit; otherwise, false.

注解

此方法等效于对 GetUnicodeCategory(Rune) 任何值 UppercaseLetterLowercaseLetterTitlecaseLetter 、、 ModifierLetter OtherLetterDecimalDigitNumber )进行查询和比较。This method is equivalent to querying GetUnicodeCategory(Rune) and comparing the result against any of the values UppercaseLetter, LowercaseLetter, TitlecaseLetter, ModifierLetter, OtherLetter, and DecimalDigitNumber.

有关详细信息,请参阅 Char.IsLetterOrDigitFor more information, see Char.IsLetterOrDigit.

适用于