package yuscii
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Module YusciiSource
decoder encoding src is a decoder that inputs from src.
Encoding. encoding specifies the decoded encoding scheme.
The type for input sources. With a `Manual source the client must provide input with src.
pp_decode ppf v prints an unspecified representation of v on ppf.
src d s j l provides d with l bytes to read, starting at j in s. This byte range is read by calls to decode with d until `Await is returned. To signal the end of input call the function with l = 0.
decoder encoding src is a decoder that inputs from src.
Encoding. encoding specifies the decoded encoding scheme.
decode d is:
`Awaitifdhas a`Manualinput source and awaits for more input. The client must usesrcto provide it.`Uchar uif a Unicode scalar valueuwas decoder.`Endif the end of input was reached.`Malformed errifdencountered an errorerr.
Note. Repeated invocation always eventually returns `End, even in case of errors.
decoder_line d is the line number of the last decoded (or malformed) character. See decoder for details.
decoder_column d is the column number of the last decoder (or malformed) character. See decoder for details.
decoder_byte_count d is the number of characters already decoder on d (including malformed ones). This is the last decode's and byte offset counting from beginning of the stream.
decoder_count d is the number of characters already decoded on d (including malformed ones). See decoder for details.