Table of Contents

Class TerminalUnicodeTextHandler

Namespace
OneImlx.Terminal.Runtime
Assembly
OneImlx.Terminal.dll
public sealed class TerminalUnicodeTextHandler : ITerminalTextHandler
Inheritance
TerminalUnicodeTextHandler
Implements
Inherited Members

Properties

Comparison

The OrdinalIgnoreCase string comparison.

public StringComparison Comparison { get; }

Property Value

StringComparison

Encoding

The Unicode text encoding.

public Encoding Encoding { get; }

Property Value

Encoding

Methods

EqualityComparer()

Returns the OrdinalIgnoreCase equality comparer.

public IEqualityComparer<string> EqualityComparer()

Returns

IEqualityComparer<string>

ExtractionRegex(TerminalOptions)

Returns the default extraction regex pattern for Unicode command string.

public string ExtractionRegex(TerminalOptions terminalOptions)

Parameters

terminalOptions TerminalOptions

The terminal configuration options.

Returns

string

TextEquals(string?, string?)

Determines whether the two Unicode texts are equal using Comparison.

public 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 Unicode text length.

public int TextLength(string? s1)

Parameters

s1 string

Returns

int