3 instantiations of RunePosition
System.Private.CoreLib (3)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\RunePosition.cs (3)
228Current = new RunePosition(rune, Current.StartIndex + Current.Length, length, false); 233Current = new RunePosition(Rune.ReplacementChar, Current.StartIndex + Current.Length, 1, true); 302Current = new RunePosition(rune, Current.StartIndex + Current.Length, charsConsumed, wasReplaced);
47 references to RunePosition
System.Private.CoreLib (46)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\RunePosition.cs (46)
17public readonly struct RunePosition : IEquatable<RunePosition> 20/// Returns an enumeration of <see cref="RunePosition"/> from the provided span that allows deeper data inspection. 24/// <see cref="Utf16Enumerator"/> to enumerate <see cref="RunePosition"/> from the provided span with UTF-16 34/// Returns an enumeration of <see cref="RunePosition"/> from the provided span that allows deeper data inspection. 38/// <see cref="Utf8Enumerator"/> to enumerate <see cref="RunePosition"/> from the provided span with UTF-8 Unicode 63/// <see langword="false"/> it current Unicode symbol is correct encoded and <see cref="RunePosition.Rune"/> 66/// <see langword="true"/> if current Unicode symbol is invalid encoded and <see cref="RunePosition.Rune"/> was 72/// Initializes a new instance of the <see cref="RunePosition"/> struct. 97/// Determines whether the specified <see cref="RunePosition"/> is equal to the current <see cref="RunePosition"/>. 99/// <param name="other">The other <see cref="RunePosition"/> to compare with.</param> 101/// <see langword="true"/> if the specified <see cref="RunePosition"/> is equal to the current 102/// <see cref="RunePosition"/>; otherwise, <see langword="false"/>. 104public bool Equals(RunePosition other) => 108/// Determines whether the specified <see cref="object"/> is equal to the current <see cref="RunePosition"/>. 110/// <param name="obj">The object to compare with the current <see cref="RunePosition"/>.</param> 113/// <see cref="RunePosition"/>; otherwise, <see langword="false"/>. 116obj is RunePosition runePosition && Equals(runePosition); 119/// Returns the hash code for the current <see cref="RunePosition"/>. 121/// <returns>The hash code for the current <see cref="RunePosition"/>.</returns> 126/// Deconstructs the <see cref="RunePosition"/> into its components. 138/// Deconstructs the <see cref="RunePosition"/> into its components. 152/// Determines whether two specified <see cref="RunePosition"/> instances are equal. 154/// <param name="left">The first <see cref="RunePosition"/> to compare.</param> 155/// <param name="right">The second <see cref="RunePosition"/> to compare.</param> 157/// <see langword="true"/> if the two <see cref="RunePosition"/> instances are equal; otherwise, 160public static bool operator ==(RunePosition left, RunePosition right) => left.Equals(right); 163/// Determines whether two specified <see cref="RunePosition"/> instances are not equal. 165/// <param name="left">The first <see cref="RunePosition"/> to compare.</param> 166/// <param name="right">The second <see cref="RunePosition"/> to compare.</param> 168/// <see langword="true"/> if the two <see cref="RunePosition"/> instances are not equal; otherwise, 171public static bool operator !=(RunePosition left, RunePosition right) => !(left == right); 174/// An enumerator for retrieving <see cref="RunePosition"/> instances from Unicode data. 179public ref struct Utf16Enumerator : IEnumerator<RunePosition> 185/// The current <see cref="RunePosition"/> in the Unicode data. 187public RunePosition Current { get; private set; } 202/// Moves to the next <see cref="RunePosition"/> in the Unicode data. 205/// <see langword="true"/> if the enumerator was successfully advanced to the next <see cref="RunePosition"/>; 253/// An enumerator for retrieving <see cref="RunePosition"/> instances from Unicode data. 258public ref struct Utf8Enumerator : IEnumerator<RunePosition> 264/// The current <see cref="RunePosition"/> in the Unicode data. 266public RunePosition Current { get; private set; } 285/// Moves to the next <see cref="RunePosition"/> in the Unicode data. 288/// <see langword="true"/> if the enumerator was successfully advanced to the next <see cref="RunePosition"/>;
System.Runtime (1)
src\runtime\artifacts\obj\System.Runtime\Release\net11.0\System.Runtime.Forwards.cs (1)
821[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Text.RunePosition))]