22 references to StringRange
Shared (22)
StringSplit\StringRange.cs (22)
16internal readonly struct StringRange : IComparable, IComparable<StringRange>, IEquatable<StringRange> 19/// Initializes a new instance of the <see cref="StringRange"/> struct. 43/// Compare current instance of <see cref="StringRange"/> to another. 50public int CompareTo(StringRange other) => Index.CompareTo(other.Index); 53/// Compare current instance of <see cref="StringRange"/> to another object. 66if (obj is StringRange ss) 73Throw.ArgumentException(nameof(obj), $"Provided value must be of type {typeof(StringRange)}, but was of type {obj.GetType()}."); 84public bool Equals(StringRange other) => other.Index == Index && other.Count == Count; 91public override bool Equals(object? obj) => obj is StringRange ss && Equals(ss); 105public static bool operator ==(StringRange left, StringRange right) 116public static bool operator !=(StringRange left, StringRange right) 127public static bool operator <(StringRange left, StringRange right) 138public static bool operator >(StringRange left, StringRange right) 149public static bool operator <=(StringRange left, StringRange right) 160public static bool operator >=(StringRange left, StringRange right)