ToAnsiString extension Introduction

Provides extension methods for converting sequences to escaped strings.

The preferred method for converting a sequence to an escaped string is to use writeAnsiString or methods on AnsiStringSink, as they are more efficient when writing multiple sequences to a buffer.

However, this extension can be useful when you need to convert a single sequence to a string, or have less performance-sensitive requirements.

on

Methods

toAnsiString() String

Available on Sequence, provided by the ToAnsiString extension

Returns the sequence as an escaped ANSI string.