Versions in this module Expand all Collapse all v0 v0.1.0 Jul 29, 2024 Changes in this version + const EOF + func EncodeSymbol(sym byte, count uint64, content []byte) (symbol []byte) + func EncodeSymbolForFunc(fn func() (int, byte, uint64, []byte, error)) (int, []byte, error) + func Eof() (int, byte, uint64, []byte, error) + func Err(err error) (int, byte, uint64, []byte, error) + func GetPossibleDouble(r rune, n1 int, sym byte, data []byte, atEOF bool) (advance int, symbol []byte, err error) + func GetRune(data []byte, atEOF bool) (r rune, n int, err error) + func GetSeq(sym byte, fn func(r rune) bool, data []byte, isEOF bool) (advance int, symbol []byte, err error) + func GetSeq1(sym byte, fn func(r rune) bool, data []byte, isEOF bool) (advance int, symbol byte, count uint64, body []byte, err error) + func IsNewLine(r rune) bool + func IsSpace(r rune) bool + func MoreData() (int, byte, uint64, []byte, error) + func SplitWrap(fn SplitFunc) func([]byte, bool) (advance int, body []byte, err error) + type Scanner struct + func NewScanner(r io.Reader, splitFn func([]byte, bool) (int, []byte, error)) *Scanner + func (s *Scanner) AtEnd() bool + func (s *Scanner) Bytes() []byte + func (s *Scanner) Err() error + func (s *Scanner) NextBytes() []byte + func (s *Scanner) NextMore() bool + func (s *Scanner) NextSymbol() byte + func (s *Scanner) NextText() string + func (s *Scanner) RawBytes() []byte + func (s *Scanner) RawPeek() (sym []byte, more bool) + func (s *Scanner) Scan() bool + func (s *Scanner) Symbol() byte + func (s *Scanner) Text() string + type SplitFunc func([]byte, bool) (int, byte, uint64, []byte, error)