Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
System.Text.Rune Struct Reference

Public Member Functions

 Rune (char ch)
 
 Rune (char highSurrogate, char lowSurrogate)
 
 Rune (int value)
 
 Rune (uint value)
 
int CompareTo (Rune other)
 
int EncodeToUtf16 (Span< char > destination)
 
int EncodeToUtf8 (Span< byte > destination)
 
override bool Equals ([NotNullWhen(true)] object? obj)
 
bool Equals (Rune other)
 
override int GetHashCode ()
 
override string ToString ()
 
bool ISpanFormattable. TryFormat (Span< char > destination, out int charsWritten, ReadOnlySpan< char > format, IFormatProvider provider)
 
string IFormattable. ToString (string format, IFormatProvider formatProvider)
 
bool TryEncodeToUtf16 (Span< char > destination, out int charsWritten)
 
bool TryEncodeToUtf8 (Span< byte > destination, out int bytesWritten)
 
int IComparable. CompareTo (object obj)
 
int CompareTo (object? obj)
 
int CompareTo (T? other)
 
int CompareTo (object? obj)
 
int CompareTo (T? other)
 
bool Equals (T? other)
 
bool TryFormat (Span< char > destination, out int charsWritten, ReadOnlySpan< char > format, IFormatProvider? provider)
 
string ToString (string? format, IFormatProvider? formatProvider)
 

Static Public Member Functions

static bool operator== (Rune left, Rune right)
 
static bool operator!= (Rune left, Rune right)
 
static bool operator< (Rune left, Rune right)
 
static bool operator<= (Rune left, Rune right)
 
static bool operator> (Rune left, Rune right)
 
static bool operator>= (Rune left, Rune right)
 
static operator Rune (char ch)
 
static operator Rune (uint value)
 
static operator Rune (int value)
 
static OperationStatus DecodeFromUtf16 (ReadOnlySpan< char > source, out Rune result, out int charsConsumed)
 
static OperationStatus DecodeFromUtf8 (ReadOnlySpan< byte > source, out Rune result, out int bytesConsumed)
 
static OperationStatus DecodeLastFromUtf16 (ReadOnlySpan< char > source, out Rune result, out int charsConsumed)
 
static OperationStatus DecodeLastFromUtf8 (ReadOnlySpan< byte > source, out Rune value, out int bytesConsumed)
 
static Rune GetRuneAt (string input, int index)
 
static bool IsValid (int value)
 
static bool IsValid (uint value)
 
static bool TryCreate (char ch, out Rune result)
 
static bool TryCreate (char highSurrogate, char lowSurrogate, out Rune result)
 
static bool TryCreate (int value, out Rune result)
 
static bool TryCreate (uint value, out Rune result)
 
static bool TryGetRuneAt (string input, int index, out Rune value)
 
static double GetNumericValue (Rune value)
 
static UnicodeCategory GetUnicodeCategory (Rune value)
 
static bool IsControl (Rune value)
 
static bool IsDigit (Rune value)
 
static bool IsLetter (Rune value)
 
static bool IsLetterOrDigit (Rune value)
 
static bool IsLower (Rune value)
 
static bool IsNumber (Rune value)
 
static bool IsPunctuation (Rune value)
 
static bool IsSeparator (Rune value)
 
static bool IsSymbol (Rune value)
 
static bool IsUpper (Rune value)
 
static bool IsWhiteSpace (Rune value)
 
static Rune ToLower (Rune value, CultureInfo culture)
 
static Rune ToLowerInvariant (Rune value)
 
static Rune ToUpper (Rune value, CultureInfo culture)
 
static Rune ToUpperInvariant (Rune value)
 

Static Package Functions

static int ReadFirstRuneFromUtf16Buffer (ReadOnlySpan< char > input)
 
static Rune UnsafeCreate (uint scalarValue)
 

Properties

static ReadOnlySpan< byte > AsciiCharInfo [get]
 
string DebuggerDisplay [get]
 
bool IsAscii [get]
 
bool IsBmp [get]
 
int Plane [get]
 
static Rune ReplacementChar [get]
 
int Utf16SequenceLength [get]
 
int Utf8SequenceLength [get]
 
int Value [get]
 

Private Member Functions

 Rune (uint scalarValue, bool unused)
 

Static Private Member Functions

static Rune ChangeCaseCultureAware (Rune rune, TextInfo textInfo, bool toUpper)
 
static int ReadRuneFromString (string input, int index)
 
static bool TryEncodeToUtf16 (Rune value, Span< char > destination, out int charsWritten)
 
static bool TryEncodeToUtf8 (Rune value, Span< byte > destination, out int bytesWritten)
 
static UnicodeCategory GetUnicodeCategoryNonAscii (Rune value)
 
static bool IsCategoryLetter (UnicodeCategory category)
 
static bool IsCategoryLetterOrDecimalDigit (UnicodeCategory category)
 
static bool IsCategoryNumber (UnicodeCategory category)
 
static bool IsCategoryPunctuation (UnicodeCategory category)
 
static bool IsCategorySeparator (UnicodeCategory category)
 
static bool IsCategorySymbol (UnicodeCategory category)
 

Private Attributes

readonly uint _value
 

Detailed Description

Definition at line 11 of file Rune.cs.


The documentation for this struct was generated from the following file: