Microsoft.Extensions.Primitives
A implementation using .
Initializes a new instance of .
The .
Propagates notifications that a change has occurred.
Registers the action to be called whenever the token produced changes.
Produces the change token.
Action called when the token changes.
Registers the action to be called whenever the token produced changes.
Produces the change token.
Action called when the token changes.
state for the consumer.
An which represents one or more instances.
Creates a new instance of .
The list of to compose.
Returns the list of which compose the current .
Add the given to the .
The to add to.
The to add.
The original .
Propagates notifications that a change has occurred.
Gets a value that indicates if a change has occurred.
Indicates if this token will pro-actively raise callbacks. If false, the token consumer must
poll to detect changes.
Registers for a callback that will be invoked when the entry has changed.
MUST be set before the callback is invoked.
The to invoke.
State to be passed into the callback.
An that is used to unregister the callback.
A strongly-typed resource class, for looking up localized strings, etc.
Returns the cached ResourceManager instance used by this class.
Overrides the current thread's CurrentUICulture property for all
resource lookups using this strongly typed resource class.
Looks up a localized string similar to Offset and length are out of bounds for the string or length is greater than the number of characters from index to the end of the string..
Looks up a localized string similar to Cannot change capacity after write started..
An optimized representation of a substring.
A for .
Initializes an instance of the struct.
The original . The includes the whole .
Initializes an instance of the struct.
The original used as buffer.
The offset of the segment within the .
The length of the segment.
Gets the buffer for this .
Gets the offset within the buffer for this .
Gets the length of this .
Gets the value of this segment as a .
Gets whether or not this contains a valid value.
Gets the at a specified position in the current .
The offset into the
The at a specified position.
Gets a from the current .
The from this .
Gets a from the current .
The from this .
Indicates whether the current object is equal to another object of the same type.
An object to compare with this object.
true
if the current object is equal to the other parameter; otherwise, false
.
Indicates whether the current object is equal to another object of the same type.
An object to compare with this object.
One of the enumeration values that specifies the rules to use in the comparison.
true
if the current object is equal to the other parameter; otherwise, false
.
Determines whether two specified StringSegment objects have the same value. A parameter specifies the culture, case, and
sort rules used in the comparison.
The first StringSegment to compare.
The second StringSegment to compare.
One of the enumeration values that specifies the rules for the comparison.
true
if the objects are equal; otherwise, false
.
Checks if the specified is equal to the current .
The to compare with the current .
true
if the specified is equal to the current ; otherwise, false
.
Checks if the specified is equal to the current .
The to compare with the current .
One of the enumeration values that specifies the rules to use in the comparison.
true
if the specified is equal to the current ; otherwise, false
.
This GetHashCode is expensive since it allocates on every call.
However this is required to ensure we retain any behavior (such as hash code randomization) that
string.GetHashCode has.
Checks if two specified have the same value.
The first to compare, or null
.
The second to compare, or null
.
true
if the value of is the same as the value of ; otherwise, false
.
Checks if two specified have different values.
The first to compare, or null
.
The second to compare, or null
.
true
if the value of is different from the value of ; otherwise, false
.
Creates a new from the given .
The to convert to a
Creates a see from the given .
The to convert to a .
Creates a see from the given .
The to convert to a .
Checks if the beginning of this matches the specified when compared using the specified .
The to compare.
One of the enumeration values that specifies the rules to use in the comparison.
true
if matches the beginning of this ; otherwise, false
.
Checks if the end of this matches the specified when compared using the specified .
The to compare.
One of the enumeration values that specifies the rules to use in the comparison.
true
if matches the end of this ; otherwise, false
.
Retrieves a substring from this .
The substring starts at the position specified by and has the remaining length.
The zero-based starting character position of a substring in this .
A that is equivalent to the substring of remaining length that begins at
in this
Retrieves a substring from this .
The substring starts at the position specified by and has the specified .
The zero-based starting character position of a substring in this .
The number of characters in the substring.
A that is equivalent to the substring of length that begins at
in this
Retrieves a that represents a substring from this .
The starts at the position specified by .
The zero-based starting character position of a substring in this .
A that begins at in this
whose length is the remainder.
Retrieves a that represents a substring from this .
The starts at the position specified by and has the specified .
The zero-based starting character position of a substring in this .
The number of characters in the substring.
A that is equivalent to the substring of length that begins at in this
Gets the zero-based index of the first occurrence of the character in this .
The search starts at and examines a specified number of character positions.
The Unicode character to seek.
The zero-based index position at which the search starts.
The number of characters to examine.
The zero-based index position of from the beginning of the if that character is found, or -1 if it is not.
Gets the zero-based index of the first occurrence of the character in this .
The search starts at .
The Unicode character to seek.
The zero-based index position at which the search starts.
The zero-based index position of from the beginning of the if that character is found, or -1 if it is not.
Gets the zero-based index of the first occurrence of the character in this .
The Unicode character to seek.
The zero-based index position of from the beginning of the if that character is found, or -1 if it is not.
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.
A Unicode character array containing one or more characters to seek.
The search starting position.
The number of character positions to examine.
The zero-based index position of the first occurrence in this instance where any character in anyOf
was found; -1 if no character in anyOf was found.
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.
A Unicode character array containing one or more characters to seek.
The search starting position.
The zero-based index position of the first occurrence in this instance where any character in anyOf
was found; -1 if no character in anyOf was found.
Reports the zero-based index of the first occurrence in this instance of any character in a specified array
of Unicode characters.
A Unicode character array containing one or more characters to seek.
The zero-based index position of the first occurrence in this instance where any character in anyOf
was found; -1 if no character in anyOf was found.
Reports the zero-based index position of the last occurrence of a specified Unicode character within this instance.
The Unicode character to seek.
The zero-based index position of value if that character is found, or -1 if it is not.
Removes all leading and trailing whitespaces.
The trimmed .
Removes all leading whitespaces.
The trimmed .
Removes all trailing whitespaces.
The trimmed .
Splits a string into StringSegments that are based on the characters in an array.
A character array that delimits the substrings in this string, an empty array that
contains no delimiters, or null.
An whose elements contain the StringSegmeents from this instance
that are delimited by one or more characters in separator.
Indicates whether the specified StringSegment is null or an Empty string.
The StringSegment to test.
Returns the represented by this or String.Empty
if the does not contain a value.
The represented by this or String.Empty
if the does not contain a value.
Tokenizes a string into s.
Initializes a new instance of .
The string to tokenize.
The characters to tokenize by.
Initializes a new instance of .
The StringSegment to tokenize.
The characters to tokenize by.
Represents zero/null, one, or many strings in an efficient way.