CharacterEscape

Description

abstract class Tinman.Core.Formatting.CharacterEscape

Derived from

ICharacterEscape

Abstract base class for ICharacterEscape implementations.

Public / Constants

Never


[ShutdownSurvive]
public static readonly attribute Never → (ICharacterEscape)

A character escape rule that always returns false.

Not​Base


[ShutdownSurvive]
public static readonly attribute NotBase → (ICharacterEscape)

A character escape rule that evaluates to true if the code point cannot be expressed with the set of base characters (see remarks).

These are the base characters:

  • Non-printable:
    '\b', '\t', '\n', '\f', '\r', ' '

  • Symbols:
    ! \ " # $ % & ' ( ) * + , - . / : ; < = > ? @ [ \ ] ^ _ ` { | } ~

  • Letters:
    A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
    a b c d e f g h i j k l m n o p q r s t u v w x y z

  • Digits:
    0 1 2 3 4 5 6 7 8 9

Public / Constructors

Wrap


public static method Wrap → (1)

predicate in : PredicateDelegate<int32>

[not-null]
The predicate to use for ICharacterEscape.EscapeCharacter.

returns → ICharacterEscape

The wrapping ICharacterEscape object.

Creates a new instance of ICharacterEscape that wraps the given PredicateDelegate.