Class ReadOnlySeStringSpanExtensions
Extension methods for Lumina.Text.ReadOnly.ReadOnlySeStringSpan.
Assembly: Dalamud.dll
Declaration
public static class ReadOnlySeStringSpanExtensions
Methods
ContainsText(ReadOnlySeStringSpan, ReadOnlySpan<char>)
Determines whether the string contains the specified plain text.
Declaration
public static bool ContainsText(this ReadOnlySeStringSpan input, ReadOnlySpan<char> needle)
Returns
System.Boolean: true if the text is found, false otherwise.
Parameters
| Type | Name | Description |
|---|---|---|
Lumina.Text.ReadOnly.ReadOnlySeStringSpan | input | The string to search. |
System.ReadOnlySpan<System.Char> | needle | The text to find. |
ReplaceText(ReadOnlySeStringSpan, ReadOnlySpan<byte>, ReadOnlySpan<byte>)
Replaces occurrences of a specified text in a Lumina.Text.ReadOnly.ReadOnlySeString with another text.
Declaration
public static ReadOnlySeString ReplaceText(this ReadOnlySeStringSpan input, ReadOnlySpan<byte> toFind, ReadOnlySpan<byte> replacement)
Returns
Lumina.Text.ReadOnly.ReadOnlySeString: A new Lumina.Text.ReadOnly.ReadOnlySeString with the replacements made.
Parameters
| Type | Name | Description |
|---|---|---|
Lumina.Text.ReadOnly.ReadOnlySeStringSpan | input | The original string. |
System.ReadOnlySpan<System.Byte> | toFind | The text to find. |
System.ReadOnlySpan<System.Byte> | replacement | The replacement text. |