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

Class ReadOnlySeStringExtensions

Extension methods for Lumina.Text.ReadOnly.ReadOnlySeString.

Assembly: Dalamud.dll
Declaration
public static class ReadOnlySeStringExtensions

Methods

IsTextOnly(ReadOnlySeString)

Determines whether the string is plain text, without any macros.

Declaration
public static bool IsTextOnly(this ReadOnlySeString input)
Returns

System.Boolean: true if the string contains only plain text, false otherwise.

Parameters
TypeNameDescription
Lumina.Text.ReadOnly.ReadOnlySeStringinputThe string to check.

ContainsText(ReadOnlySeString, ReadOnlySpan<byte>)

Determines whether the string contains the specified plain text.

Declaration
public static bool ContainsText(this ReadOnlySeString input, ReadOnlySpan<byte> needle)
Returns

System.Boolean: true if the text is found, false otherwise.

Parameters
TypeNameDescription
Lumina.Text.ReadOnly.ReadOnlySeStringinputThe string to search.
System.ReadOnlySpan<System.Byte>needleThe text to find.

ContainsText(ReadOnlySeString, ReadOnlySpan<char>)

Determines whether the string contains the specified plain text.

Declaration
public static bool ContainsText(this ReadOnlySeString input, ReadOnlySpan<char> needle)
Returns

System.Boolean: true if the text is found, false otherwise.

Parameters
TypeNameDescription
Lumina.Text.ReadOnly.ReadOnlySeStringinputThe string to search.
System.ReadOnlySpan<System.Char>needleThe text to find.