Skip to main content
Version: 15.x (API 15) [Current]

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​
TypeNameDescription
Lumina.Text.ReadOnly.ReadOnlySeStringSpaninputThe string to search.
System.ReadOnlySpan<System.Char>needleThe 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​
TypeNameDescription
Lumina.Text.ReadOnly.ReadOnlySeStringSpaninputThe original string.
System.ReadOnlySpan<System.Byte>toFindThe text to find.
System.ReadOnlySpan<System.Byte>replacementThe replacement text.