Muokkaa

Jaa


CompareInfo.IsSortable Method

Definition

Indicates whether a specified Unicode character or string is sortable.

Overloads

IsSortable(Rune)

Indicates whether a specified Rune is sortable.

IsSortable(String)

Indicates whether a specified Unicode string is sortable.

IsSortable(ReadOnlySpan<Char>)

Indicates whether a specified Unicode read-only span of characters is sortable.

IsSortable(Char)

Indicates whether a specified Unicode character is sortable.

IsSortable(Rune)

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

Indicates whether a specified Rune is sortable.

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

Parameters

value
Rune

A Unicode scalar value.

Returns

true if value is a sortable Unicode scalar value; otherwise, false.

Applies to

IsSortable(String)

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

Indicates whether a specified Unicode string is sortable.

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

Parameters

text
String

A string of zero or more Unicode characters.

Returns

true if the str parameter is not an empty string ("") and all the Unicode characters in str are sortable; otherwise, false.

Attributes

Exceptions

str is null.

Remarks

Each Unicode character in the str parameter is represented by one or more UTF-16 encoded Char objects. The str parameter is sortable if each Unicode character is defined in an internal CompareInfo class sort table, and is not a private use or unpaired high or low surrogate character.

Applies to

IsSortable(ReadOnlySpan<Char>)

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

Indicates whether a specified Unicode read-only span of characters is sortable.

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

Parameters

text
ReadOnlySpan<Char>

A read-only span of characters of zero or more Unicode characters.

Returns

true if text is non-empty and contains only sortable Unicode characters; otherwise, false.

Applies to

IsSortable(Char)

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

Indicates whether a specified Unicode character is sortable.

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

Parameters

ch
Char

A Unicode character.

Returns

true if the ch parameter is sortable; otherwise, false.

Attributes

Remarks

The ch parameter is sortable if it is a Unicode character that is defined in an internal CompareInfo class sort table, and is not a private use or unpaired high or low surrogate character.

Applies to