Skip to content

Interface IImmutableStringReader

Namespace: Void.Minecraft.Commands.Brigadier
Assembly: Void.Minecraft.dll

public interface IImmutableStringReader

Properties

CanRead

bool CanRead { get; }

Property Value

bool

Cursor

int Cursor { get; set; }

Property Value

int

Peek

char Peek { get; }

Property Value

char

Read

string Read { get; }

Property Value

string

Remaining

string Remaining { get; }

Property Value

string

RemainingLength

int RemainingLength { get; }

Property Value

int

Source

string Source { get; init; }

Property Value

string

TotalLength

int TotalLength { get; }

Property Value

int

Methods

CanReadLength(int)

Determines whether advancing the cursor by length characters remains within the source.

bool CanReadLength(int length)

Parameters

length int

The number of characters to test from the current cursor position.

Returns

bool

true when length characters can be read without moving past ; otherwise, false.

PeekAt(int)

char PeekAt(int offset)

Parameters

offset int

Returns

char