reader

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TextReader

type TextReader struct {
	InlineComments    string
	StartBlockComment string
	EndBlockComment   string
	StringChars       []string
	StringEscapeChar  string
	Words             []*strings.Builder
	KeyWords          []string
}

func (*TextReader) AddWord

func (t *TextReader) AddWord(word *strings.Builder)

func (*TextReader) BlockEndsWith

func (t *TextReader) BlockEndsWith(word *strings.Builder, ending string) bool

func (*TextReader) BlockStartsWith

func (t *TextReader) BlockStartsWith(starting string) bool

func (*TextReader) LastWord

func (t *TextReader) LastWord() *strings.Builder

func (*TextReader) ReadBlockComment

func (t *TextReader) ReadBlockComment(input string, cc int) int

func (*TextReader) ReadLineComment

func (t *TextReader) ReadLineComment(input string, cc int) int

func (*TextReader) ReadString

func (t *TextReader) ReadString(input string, cc int, stringInit string) (*strings.Builder, int)

func (*TextReader) SplitCode

func (t *TextReader) SplitCode(input string)

func (*TextReader) StartWord

func (t *TextReader) StartWord(input byte)

func (*TextReader) WriteByte

func (t *TextReader) WriteByte(word int, b byte)

func (*TextReader) WriteCurrentWord

func (t *TextReader) WriteCurrentWord(input byte)

Jump to

Keyboard shortcuts

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