Lines Matching defs:Scanner
29 type Scanner struct { struct
30 r io.Reader // The reader provided by the client.
31 split SplitFunc // The function to split the tokens.
32 maxTokenSize int // Maximum size of a token; modified by tests.
33 token []byte // Last token returned by split.
34 buf []byte // Buffer used as argument to split.
35 start int // First non-processed byte in buf.
36 end int // End of data in buf.
37 err error // Sticky error.
38 empties int // Count of successive empty tokens.
39 scanCalled bool // Scan has been called; buffer is in use.
40 done bool // Scan has finished.
98 func (s *Scanner) Err() error {
108 func (s *Scanner) Bytes() []byte {
114 func (s *Scanner) Text() string {
139 func (s *Scanner) Scan() bool {
243 func (s *Scanner) advance(n int) bool {
257 func (s *Scanner) setErr(err error) {
272 func (s *Scanner) Buffer(buf []byte, max int) {
284 func (s *Scanner) Split(split SplitFunc) {