TextPosition structure

A position in the text being parsed.

public struct TextPosition : IEquatable<TextPosition>

Public Members

name description
Index { get; } The zero-based index into the text being parsed.
Text { get; } The entire text being parsed.
override Equals(…) Checks for equality.
Equals(…) Checks for equality.
GetCurrentChar() Gets the character at the text position.
override GetHashCode() Gets the hash code.
GetLineColumn() The line and column number of the text position.
IsAtEnd() True if the text position is at the end of the text.
WithNextIndex() Creates a new text position at the next index.
WithNextIndex(…) Creates a new text position advanced the specified number of characters.
operator == Checks for equality.
operator != Checks for equality.

See Also