StringSegment
An optimized representation of a substring.
A StringSegment for Empty.
Gets the String buffer for this StringSegment.
Gets whether this StringSegment contains a valid value.
Gets the Char at a specified position in the current StringSegment.
Gets the length of this StringSegment.
Gets the offset within the buffer for this StringSegment.
Gets the value of this segment as a String.
Initializes an instance of the StringSegment struct.
Initializes an instance of the StringSegment struct.
Compares substrings of two specified StringSegment objects using the specified rules,
and returns an integer that indicates their relative position in the sort order.
Determines whether two specified StringSegment objects have the same value. A parameter specifies the culture, case, and
sort rules used in the comparison.
Indicates whether the specified StringSegment is null or an Empty string.
Checks if two specified StringSegment have the same value.
Creates a new StringSegment from the given String.
Creates a see ReadOnlySpan<T> from the given StringSegment.
Creates a see ReadOnlyMemory<T> from the given StringSegment.
Checks if two specified StringSegment have different values.
Gets a ReadOnlyMemory<T> from the current StringSegment.
Gets a ReadOnlySpan<T> from the current StringSegment.
Gets a ReadOnlySpan<T> from the current StringSegment that starts
at the position specified by start, and has the remaining length.
Gets a ReadOnlySpan<T> from the current StringSegment that starts
at the position specified by start, and has the specified length.
Checks if the end of this StringSegment matches the specified String when compared using the specified comparisonType.
Indicates whether the current object is equal to another object of the same type.
Indicates whether the current object is equal to another object of the same type.
Checks if the specified String is equal to the current StringSegment.
Checks if the specified String is equal to the current StringSegment.
Gets the zero-based index of the first occurrence of the character c in this StringSegment.
The search starts at start and examines a specified number of count character positions.
Gets the zero-based index of the first occurrence of the character c in this StringSegment.
The search starts at start.
Gets the zero-based index of the first occurrence of the character c in this StringSegment.
Reports the zero-based index of the first occurrence in this instance of any character in a specified array
of Unicode characters. The search starts at a specified character position and examines a specified number
of character positions.
Reports the zero-based index of the first occurrence in this instance of any character in a specified array
of Unicode characters. The search starts at a specified character position.
Reports the zero-based index of the first occurrence in this instance of any character in a specified array
of Unicode characters.
Reports the zero-based index position of the last occurrence of a specified Unicode character within this instance.
Splits a string into StringSegments that are based on the characters in an array.
Checks if the beginning of this StringSegment matches the specified String when compared using the specified comparisonType.
Retrieves a StringSegment that represents a substring from this StringSegment.
The StringSegment starts at the position specified by offset.
Retrieves a StringSegment that represents a substring from this StringSegment.
The StringSegment starts at the position specified by offset and has the specified length.
Retrieves a substring from this StringSegment.
The substring starts at the position specified by offset and has the remaining length.
Retrieves a substring from this StringSegment.
The substring starts at the position specified by offset and has the specified length.
Removes all leading and trailing whitespaces.
Removes all trailing whitespaces.
Removes all leading whitespaces.