Class std.rt.StringReader
Synopsis
public final class StringReader
A class for iterating over the codepoints in a string.
A Perun string, represented by the std.rt.String
class, is encoded in UTF-8. This class
allows you to read a string and extract the codepoints.
Fields
Constructors
Construct with the specified string.
We will start reading from the start of the string.
Methods
public qword_t getNext();
Get the next codepoint. Returns 0 if we are at the end of the string.