Import std.io.memory
StringReader
class
Public Class StringReader Implements Reader, Seeker
Reads a String's UTF-8 bytes, and moves around in them.
Examples
Local reader = StringReader("héllo")
Expect(reader.Count == 6)
Expect((Try ReadAllText(reader)) == "héllo")-
A StringReader of
text's UTF-8 bytes. -
How many bytes the text has.
-
Reads up to into.Count of the text's bytes from where it is into
into, moves on past them, and gives how many, or 0 at its end. -
Moves to
offsetbytes fromorigin, and gives where it is now. Throws an IOError before its start.
Report an issue with this page or with FutureBlitz on GitHub.