ICharacterEscape

Description

interface Tinman.Core.Formatting.ICharacterEscape

Extended by

CharacterEncoding abstract
CharacterEscape abstract
ITextStream
SourceCodeWriter sealed

Base interface for classes that decide whether to escape Unicode characters.

Public / Methods

Escape​Character


public method EscapeCharacter → (1)

codePoint in : int32

The Unicode code point.

returns → bool

true if codePoint in must be escaped,
false if the code point of codePoint in may be output directly.

Checks whether the given Unicode code point must be escaped, because it cannot be represented in the output encoding.

Usually, escaping of characters happens at high levels in the application logic, for example when outputting the source code of a literal expression in some markup or programming language.

Extensions

Or


public static method Or → (1)

other in : ICharacterEscape

The escape rule to combine with or null.

returns → ICharacterEscape

The resulting escape rule.

Combines this escape rule with the given other in one.

The combined rule will return true if this and/or other in return true.