Click or drag to resize

ICharStreamLa Method

Implements look-ahead logic that allows to read characters without changing the current position of the stream.

Namespace:  Syntactik.IO
Assembly:  Syntactik (in Syntactik.dll) Version: 0.3.0-beta1
Syntax
C#
int La(
	int i
)

Parameters

i
Type: SystemInt32
if i = 0 then result is undefined. if i = -1 then the function returns the previously read character. If i = -2 then the function returns the character prior to the previously read character, etc. If i = 1 then the function returns the current character which is the next character to be consumed, etc.

Return Value

Type: Int32
Result character.
See Also