StringOrMemory
Represents a string and equivalent memory representation of this string.
Prevents multiple allocations of string by caching it
Static empty string instance
Checks if string is null or empty
Returns character at specified index
Length of string
Returns memory representation of string
Creates new instance of StringOrMemory from string
Creates new instance of StringOrMemory from read only memory
Equality operator for StringOrMemory and String
Equality operator for StringOrMemory and StringOrMemory
Equality operator for StringOrMemory and ReadOnlyMemory<T>
Equality operator for StringOrMemory and ReadOnlySpan<T>
Converts string to StringOrMemory implicitly
Converts ReadOnlyMemory<T> to string implicitly
Converts StringOrMemory to ReadOnlyMemory<T>
Converts StringOrMemory to ReadOnlySpan<T>
Inequality operator for StringOrMemory and String
Inequality operator for StringOrMemory and StringOrMemory
Inequality operator for StringOrMemory and ReadOnlyMemory<T>
Inequality operator for StringOrMemory and ReadOnlySpan<T>
CLR equals implementation
Replace all occurrences of target character with replacement character