CompareInfo.IsSortable 方法

定义

指示指定的 Unicode 字符或字符串是否可排序。

重载

IsSortable(Rune)

指示指定的 Rune 是否可排序。

IsSortable(String)

指示指定的 Unicode 字符串是否可排序。

IsSortable(ReadOnlySpan<Char>)

指示指定的 Unicode 字符只读范围是否可排序。

IsSortable(Char)

指示指定的 Unicode 字符是否可排序。

IsSortable(Rune)

Source:
CompareInfo.cs
Source:
CompareInfo.cs
Source:
CompareInfo.cs

指示指定的 Rune 是否可排序。

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

参数

value
Rune

一个 Unicode 标量值。

返回

如果 value 是可排序的 Unicode 标量值,则为 true;否则为 false

适用于

IsSortable(String)

Source:
CompareInfo.cs
Source:
CompareInfo.cs
Source:
CompareInfo.cs

指示指定的 Unicode 字符串是否可排序。

public:
 static bool IsSortable(System::String ^ text);
public static bool IsSortable (string text);
[System.Runtime.InteropServices.ComVisible(false)]
public static bool IsSortable (string text);
static member IsSortable : string -> bool
[<System.Runtime.InteropServices.ComVisible(false)>]
static member IsSortable : string -> bool
Public Shared Function IsSortable (text As String) As Boolean

参数

text
String

由 0 或更多 Unicode 字符组成的字符串。

返回

如果 str 参数不是空字符串 ("") 且 str 中的所有 Unicode 字符都是可排序的,则为 true;否则为 false

属性

例外

strnull

注解

参数中的每个 str Unicode 字符都由一个或多个 UTF-16 编码 Char 对象表示。 如果每个 Unicode 字符在内部CompareInfo类排序表中定义,并且不是专用或不成对的高或低代理字符,则str参数是可排序的。

适用于

IsSortable(ReadOnlySpan<Char>)

Source:
CompareInfo.cs
Source:
CompareInfo.cs
Source:
CompareInfo.cs

指示指定的 Unicode 字符只读范围是否可排序。

public:
 static bool IsSortable(ReadOnlySpan<char> text);
public static bool IsSortable (ReadOnlySpan<char> text);
static member IsSortable : ReadOnlySpan<char> -> bool
Public Shared Function IsSortable (text As ReadOnlySpan(Of Char)) As Boolean

参数

text
ReadOnlySpan<Char>

零个或多个 Unicode 字符的字符只读范围。

返回

如果 text 为非空,并且仅包含可排序的 Unicode 字符,则为 true;否则为 false

适用于

IsSortable(Char)

Source:
CompareInfo.cs
Source:
CompareInfo.cs
Source:
CompareInfo.cs

指示指定的 Unicode 字符是否可排序。

public:
 static bool IsSortable(char ch);
public static bool IsSortable (char ch);
[System.Runtime.InteropServices.ComVisible(false)]
public static bool IsSortable (char ch);
static member IsSortable : char -> bool
[<System.Runtime.InteropServices.ComVisible(false)>]
static member IsSortable : char -> bool
Public Shared Function IsSortable (ch As Char) As Boolean

参数

ch
Char

一个 Unicode 字符。

返回

如果 ch 参数可排序,则为 true;否则为 false

属性

注解

ch如果参数是内部CompareInfo类排序表中定义的 Unicode 字符,并且不是专用的或未配对的高或低代理项字符,则参数可排序。

适用于