Class TerminalTextHandler
The default ITerminalTextHandler.
public sealed class TerminalTextHandler : ITerminalTextHandler
- Inheritance
-
TerminalTextHandler
- Implements
- Inherited Members
Constructors
TerminalTextHandler(StringComparison, Encoding)
Initializes a new instance of the TerminalTextHandler class with specified comparison and encoding.
public TerminalTextHandler(StringComparison comparison, Encoding encoding)
Parameters
comparisonStringComparisonThe string comparison to use.
encodingEncodingThe text encoding to use.
Properties
Comparison
The string comparison.
public StringComparison Comparison { get; }
Property Value
Encoding
The text encoding.
public Encoding Encoding { get; }
Property Value
Methods
CharEquals(char?, char?)
Determines whether the two characters are equal using Comparison.
public bool CharEquals(char? ch1, char? ch2)
Parameters
Returns
- bool
trueif the characters are equal,falseotherwise.
EqualityComparer()
Returns the InvariantCultureIgnoreCase equality comparer.
public IEqualityComparer<string> EqualityComparer()
Returns
SingleEquals(char?, string?)
Determines whether a characters and text are equal using Comparison.
public bool SingleEquals(char? ch1, string? s2)
Parameters
Returns
- bool
trueif the texts are equal,falseotherwise.
TextEquals(string?, string?)
Determines whether the two ASCII texts are equal using Comparison.
public bool TextEquals(string? s1, string? s2)
Parameters
Returns
- bool
trueif the texts are equal,falseotherwise.
TextLength(string?)
Returns the ASCII text length.
public int TextLength(string? s1)
Parameters
s1string