StringLineGroup.Iterator Struct

The iterator used to iterate other the lines.

public struct Iterator : ICharIterator
Implements

Constructors

NameDescription
Iterator(StringLineGroup)Initializes a new instance of the Iterator class.

Iterator(StringLineGroup)

StringLineGroup.cs

Initializes a new instance of the Iterator class.

public Iterator(StringLineGroup stringLineGroup)

Parameters

stringLineGroup StringLineGroup

Properties

NameDescription
CurrentCharGets or sets the current char.
EndGets or sets the end.
IsEmptyGets or sets the is empty.
SliceIndexGets or sets the slice index.
StartGets or sets the start.

Gets or sets the current char.

public readonly char CurrentChar { get; }

Property value

char

Gets or sets the end.

public readonly int End { get; }

Property value

int

Gets or sets the is empty.

public readonly bool IsEmpty { get; }

Property value

bool

Gets or sets the slice index.

public readonly int SliceIndex { get; }

Property value

int

Gets or sets the start.

public readonly int Start { get; }

Property value

int

Methods

NameDescription
NextChar()Performs the next char operation.
PeekChar()Performs the peek char operation.
PeekChar(int)Performs the peek char operation.
Remaining()Performs the remaining operation.
SkipChar()Performs the skip char operation.
TrimStart()Performs the trim start operation.

Performs the next char operation.

public char NextChar()

Returns

char

PeekChar overloads

Performs the peek char operation.

public readonly char PeekChar()
Returns

char

PeekChar(int)

StringLineGroup.cs

Performs the peek char operation.

public readonly char PeekChar(int offset)
Parameters
offset int
Returns

char

Performs the remaining operation.

public StringLineGroup Remaining()

Performs the skip char operation.

public void SkipChar()

Performs the trim start operation.

public bool TrimStart()

Returns

bool