Rune Struct
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a Unicode scalar value ([ U+0000..U+D7FF ], inclusive; or [ U+E000..U+10FFFF ], inclusive).
public value class Rune : IComparable, IComparable<System::Text::Rune>, IEquatable<System::Text::Rune>
public value class Rune : IComparable, IComparable<System::Text::Rune>, IEquatable<System::Text::Rune>, ISpanFormattable
public value class Rune : IComparable, IComparable<System::Text::Rune>, IEquatable<System::Text::Rune>, ISpanFormattable, IUtf8SpanFormattable
public value class Rune : IComparable<System::Text::Rune>, IEquatable<System::Text::Rune>
public readonly struct Rune : IComparable, IComparable<System.Text.Rune>, IEquatable<System.Text.Rune>
public readonly struct Rune : IComparable, IComparable<System.Text.Rune>, IEquatable<System.Text.Rune>, ISpanFormattable
public readonly struct Rune : IComparable, IComparable<System.Text.Rune>, IEquatable<System.Text.Rune>, ISpanFormattable, IUtf8SpanFormattable
public readonly struct Rune : IComparable<System.Text.Rune>, IEquatable<System.Text.Rune>
type Rune = struct
type Rune = struct
interface ISpanFormattable
interface IFormattable
type Rune = struct
interface IFormattable
interface ISpanFormattable
type Rune = struct
interface IFormattable
interface ISpanFormattable
interface IUtf8SpanFormattable
Public Structure Rune
Implements IComparable, IComparable(Of Rune), IEquatable(Of Rune)
Public Structure Rune
Implements IComparable, IComparable(Of Rune), IEquatable(Of Rune), ISpanFormattable
Public Structure Rune
Implements IComparable, IComparable(Of Rune), IEquatable(Of Rune), ISpanFormattable, IUtf8SpanFormattable
Public Structure Rune
Implements IComparable(Of Rune), IEquatable(Of Rune)
- Inheritance
- Implements
For more information about this API, see Supplemental API remarks for Rune.
Rune(Char, Char) |
Creates a Rune from the provided UTF-16 surrogate pair. |
Rune(Char) |
Creates a Rune from the provided UTF-16 code unit. |
Rune(Int32) |
Creates a Rune from the specified 32-bit integer that represents a Unicode scalar value. |
Rune(UInt32) |
Creates a Rune from the specified 32-bit unsigned integer that represents a Unicode scalar value. |
Is |
Gets a value that indicates whether the scalar value associated with this Rune is within the ASCII encoding range. |
Is |
Gets a value that indicates whether the scalar value associated with this Rune is within the BMP encoding range. |
Plane |
Gets the Unicode plane (0 to 16, inclusive) that contains this scalar. |
Replacement |
Gets a Rune instance that represents the Unicode replacement character U+FFFD. |
Utf16Sequence |
Gets the length in code units (Char) of the UTF-16 sequence required to represent this scalar value. |
Utf8Sequence |
Gets the length in code units of the UTF-8 sequence required to represent this scalar value. |
Value |
Gets the Unicode scalar value as an integer. |
Compare |
Compares the current instance to the specified Rune instance. |
Decode |
Decodes the Rune at the beginning of the provided UTF-16 source buffer. |
Decode |
Decodes the Rune at the beginning of the provided UTF-8 source buffer. |
Decode |
Decodes the Rune at the end of the provided UTF-16 source buffer. |
Decode |
Decodes the Rune at the end of the provided UTF-8 source buffer. |
Encode |
Encodes this Rune to a UTF-16 destination buffer. |
Encode |
Encodes this Rune to a UTF-8 destination buffer. |
Equals(Object) |
Returns a value that indicates whether the current instance and a specified object are equal. |
Equals(Rune) |
Returns a value that indicates whether the current instance and a specified rune are equal. |
Get |
Returns the hash code for this instance. |
Get |
Gets the numeric value associated with the specified rune. |
Get |
Gets the Rune that begins at a specified position in a string. |
Get |
Gets the Unicode category associated with the specified rune. |
Is |
Returns a value that indicates whether the specified rune is categorized as a control character. |
Is |
Returns a value that indicates whether the specified rune is categorized as a decimal digit. |
Is |
Returns a value that indicates whether the specified rune is categorized as a letter. |
Is |
Returns a value that indicates whether the specified rune is categorized as a letter or a decimal digit. |
Is |
Returns a value that indicates whether the specified rune is categorized as a lowercase letter. |
Is |
Returns a value that indicates whether the specified rune is categorized as a number. |
Is |
Returns a value that indicates whether the specified rune is categorized as a punctuation mark. |
Is |
Returns a value that indicates whether the specified rune is categorized as a separator character. |
Is |
Returns a value that indicates whether the specified rune is categorized as a symbol character. |
Is |
Returns a value that indicates whether the specified rune is categorized as an uppercase letter. |
Is |
Returns a value that indicates whether a 32-bit signed integer represents a valid Unicode scalar value; that is, it is in the range [ U+0000..U+D7FF ], inclusive; or [ U+E000..U+10FFFF ], inclusive. |
Is |
Returns a value that indicates whether a 32-bit unsigned integer represents a valid Unicode scalar value; that is, it is in the range [ U+0000..U+D7FF ], inclusive, or [ U+E000..U+10FFFF ], inclusive. |
Is |
Returns a value that indicates whether the specified rune is categorized as a white space character. |
To |
Returns a copy of the specified Rune converted to lowercase, using the casing rules of the specified culture. |
To |
Returns a copy of the specified Rune converted to lowercase using the casing rules of the invariant culture. |
To |
Returns the string representation of this Rune instance. |
To |
Returns a copy of the specified Rune converted to uppercase, using the casing rules of the specified culture. |
To |
Returns a copy of the specified Rune converted to uppercase using the casing rules of the invariant culture. |
Try |
Attempts to create a Rune from the specified UTF-16 surrogate pair and returns a value that indicates whether the operation was successful. |
Try |
Attempts to create a Rune from a specified character and returns a value that indicates whether the operation succeeded. |
Try |
Attempts to create a Rune from a specified signed integer that represents a Unicode scalar value. |
Try |
Attempts to create a Rune from the specified 32-bit unsigned integer that represents a Unicode scalar value. |
Try |
Encodes this Rune to a UTF-16 encoded destination buffer. |
Try |
Encodes this Rune to a UTF-8 encoded destination buffer. |
Try |
Attempts to get the Rune that begins at a specified position in a string, and return a value that indicates whether the operation succeeded. |
Equality(Rune, Rune) |
Returns a value that indicates whether two Rune instances are equal. |
Explicit(Char to Rune) |
Defines an explicit conversion of a 16-bit Unicode character to a Rune. |
Explicit(Int32 to Rune) |
Defines an explicit conversion of a 32-bit signed integer to a Rune. |
Explicit(UInt32 to Rune) |
Defines an explicit conversion of a 32-bit unsigned integer to a Rune. |
Greater |
Returns a value indicating whether a specified Rune is greater than another specified Rune. |
Greater |
Returns a value indicating whether a specified Rune is greater than or equal to another specified Rune. |
Inequality(Rune, Rune) |
Returns a value that indicates whether two Rune instances have different values. |
Less |
Returns a value indicating whether a specified Rune is less than another specified Rune. |
Less |
Returns a value indicating whether a specified Rune is less than or equal to another specified Rune. |
IComparable. |
Compares the current instance to the specified object. |
IFormattable. |
Formats the value of the current instance using the specified format. |
ISpan |
Tries to format the value of the current instance into the provided span of characters. |
IUtf8Span |
Tries to format the value of the current instance as UTF-8 into the provided span of bytes. |
Product | Versions |
---|---|
.NET | Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: