Table of Contents

Interface ITerminalTextHandler

Namespace
OneImlx.Terminal.Runtime
Assembly
OneImlx.Terminal.dll

An abstraction of a terminal text handler.

public interface ITerminalTextHandler

Properties

Comparison

Gets the StringComparison value to compare the two strings.

StringComparison Comparison { get; }

Property Value

StringComparison

Encoding

Gets the text Encoding.

Encoding Encoding { get; }

Property Value

Encoding

Methods

EqualityComparer()

Returns the equality comparer.

IEqualityComparer<string> EqualityComparer()

Returns

IEqualityComparer<string>

TextEquals(string?, string?)

Determines whether the two texts are equal using Comparison.

bool TextEquals(string? s1, string? s2)

Parameters

s1 string

The first text to compare.

s2 string

The second text to compare.

Returns

bool

true if the texts are equal, false otherwise.

TextLength(string?)

Returns the text length.

int TextLength(string? s1)

Parameters

s1 string

Returns

int