DotNext by .NET Foundation and Contributors

<PackageReference Include="DotNext" Version="5.17.0" />

.NET API 536,520 bytes

 CharBuffer

public static class CharBuffer
Providers extension methods to work with char buffers.
public static void Concat(this IBufferWriter<char> writer, ReadOnlySpan<string> values)

Writes concatenated strings.

public static void Concat(this ref BufferWriterSlim writer, ReadOnlySpan<string> values)

Writes concatenated strings.

public static int Format<T>(this IBufferWriter<char> writer, T value, string format = null, IFormatProvider provider = null)

Writes the value as a string.

public static int Format(this IBufferWriter<char> writer, CompositeFormat format, ReadOnlySpan<object> args, IFormatProvider provider = null)

Writes formatted string to the buffer.

public static int Format<T>(this ref BufferWriterSlim writer, T value, string format = null, IFormatProvider provider = null)

Writes the value as a string.

public static int Format(this ref BufferWriterSlim writer, CompositeFormat format, ReadOnlySpan<object> args, IFormatProvider provider = null)

Writes formatted string to the buffer.

public static int Interpolate(this IBufferWriter<char> writer, IFormatProvider provider, ref BufferWriterInterpolatedStringHandler handler)

Writes interpolated string to the buffer.

public static int Interpolate(this IBufferWriter<char> writer, ref BufferWriterInterpolatedStringHandler handler)

Writes interpolated string to the buffer.

public static int Interpolate(this ref BufferWriterSlim writer, IFormatProvider provider, ref BufferWriterSlimInterpolatedStringHandler handler)

Writes interpolated string to the buffer.

public static int Interpolate(this ref BufferWriterSlim writer, ref BufferWriterSlimInterpolatedStringHandler handler)

Writes interpolated string to the buffer.

public static bool TryFormat<T>(this ref SpanWriter writer, T value, ReadOnlySpan<char> format = default, IFormatProvider provider = null) where T : ISpanFormattable

Converts the value to a set of characters and writes them to the buffer.

public static bool TryFormat(this ref SpanWriter writer, CompositeFormat format, ReadOnlySpan<object> args, IFormatProvider provider = null)

Tries to write formatted string to the buffer.

public static void Write(this IBufferWriter<char> writer, StringBuilder input)

Writes the contents of string builder to the buffer.

public static void Write(this ref BufferWriterSlim writer, StringBuilder input)

Writes the contents of string builder to the buffer.

public static void Write(this ref SpanWriter writer, StringBuilder input)

Writes the contents of a string builder to the buffer.

public static void WriteLine(this IBufferWriter<char> writer)

Writes line termination symbols to the buffer.

public static void WriteLine(this IBufferWriter<char> writer, ReadOnlySpan<char> characters)

Writes a string to the buffer, followed by a line terminator.

public static void WriteLine(this ref BufferWriterSlim writer)

Writes line termination symbols to the buffer.

public static void WriteLine(this ref BufferWriterSlim writer, ReadOnlySpan<char> characters)

Writes a string to the buffer, followed by a line terminator.