buffer

package
v0.0.0-...-ac8d9f0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 18, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Buffer

type Buffer struct {
	CacheBlanks bool
	// contains filtered or unexported fields
}

func NewReaderBuffer

func NewReaderBuffer(reader io.Reader, opts ...BufferOpt) *Buffer

func NewStringBuffer

func NewStringBuffer(sql string) *Buffer

func (*Buffer) AbsolutePos

func (tb *Buffer) AbsolutePos() int

func (*Buffer) AbsoluteStart

func (tb *Buffer) AbsoluteStart() int

func (*Buffer) Cur

func (tb *Buffer) Cur() uint16

func (*Buffer) HalfFull

func (tb *Buffer) HalfFull() bool

func (*Buffer) Next

func (tb *Buffer) Next()

func (*Buffer) Peek

func (tb *Buffer) Peek(dist int) uint16

func (*Buffer) ReadBuffer

func (tb *Buffer) ReadBuffer() string

func (*Buffer) ReadCache

func (tb *Buffer) ReadCache() string

func (*Buffer) ResetCache

func (tb *Buffer) ResetCache()

func (*Buffer) Skip

func (tb *Buffer) Skip(dist int)

func (*Buffer) SkipBlank

func (tb *Buffer) SkipBlank()

SkipBlank skips the cursor while it finds whitespace

type BufferOpt

type BufferOpt func(*Buffer)

func WithCache

func WithCache() BufferOpt

func WithoutCache

func WithoutCache() BufferOpt

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL