Method
PeekChar
func PeekChar() -> Result<Optional<Character>, TextReadError>
Declaring type: SyncStreamReader
Module: System.IO
Assembly: System.Runtime.dll
Source file: SyncStreamReader.rvn
Implements SyncTextReader.PeekChar
Peeks at the next Unicode grapheme without advancing the text cursor.
Return value
Result<Optional<Character>, TextReadError>
Some Character, None at EOF, or a decoding, I/O, Busy or limit error.
Remarks
May read underlying input and retain lookahead. Repeated peeks reuse the cached Character. A grapheme may require a subsequent boundary or EOF. The maximum grapheme size is 65536 UTF-8 bytes.