Interface IImmutableStringReader
Namespace: Void.Minecraft.Commands.Brigadier
Assembly: Void.Minecraft.dll
public interface IImmutableStringReaderProperties
CanRead
bool CanRead { get; }Property Value
Cursor
int Cursor { get; set; }Property Value
Peek
char Peek { get; }Property Value
Read
string Read { get; }Property Value
Remaining
string Remaining { get; }Property Value
RemainingLength
int RemainingLength { get; }Property Value
Source
string Source { get; init; }Property Value
TotalLength
int TotalLength { get; }Property Value
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
true when length characters can be read without moving past
PeekAt(int)
char PeekAt(int offset)Parameters
offset int