Documentation
¶
Index ¶
- func ReverseString(s string) string
- type Matcher
- func (m *Matcher) Any(valid string) bool
- func (m *Matcher) End() bool
- func (m *Matcher) Escape(escape rune) bool
- func (m *Matcher) Except(invalid string) bool
- func (m *Matcher) ExceptUnescapedSpaces(escape rune) bool
- func (m *Matcher) Float() bool
- func (m *Matcher) FloatValue() (float64, error)
- func (m *Matcher) FloatValueAdvance() (float64, error)
- func (m *Matcher) Fn(fn func(rune) bool) bool
- func (m *Matcher) FnLoop(fn func(rune) bool) bool
- func (m *Matcher) FnOrder(fns ...func() bool) bool
- func (m *Matcher) GoQuotes(escape rune, maxLen, maxLenSingleQuote int) bool
- func (m *Matcher) Id() bool
- func (m *Matcher) Int() bool
- func (m *Matcher) IntValue() (int, error)
- func (m *Matcher) IntValueAdvance() (int, error)
- func (m *Matcher) NPos(n int) bool
- func (m *Matcher) NRunes(n int) bool
- func (m *Matcher) Quote(quote rune, escape rune, breakOnNewline bool, maxLen int) bool
- func (m *Matcher) Quoted(validQuotes string, escape rune, breakOnNewline bool, maxLen int) bool
- func (m *Matcher) Rune(ru rune) bool
- func (m *Matcher) Sequence(s string) bool
- func (m *Matcher) Spaces() bool
- func (m *Matcher) SpacesAdvance() error
- func (m *Matcher) SpacesExceptNewline() bool
- func (m *Matcher) ToNewlineOrEnd()
- type Scanner
- func (sc *Scanner) Advance()
- func (sc *Scanner) Empty() bool
- func (sc *Scanner) Errorf(f string, args ...interface{}) error
- func (sc *Scanner) PeekRune() rune
- func (sc *Scanner) ReadRune() rune
- func (sc *Scanner) RewindOnFalse(fn func() bool) bool
- func (sc *Scanner) SetStartPos(v int)
- func (sc *Scanner) Value() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReverseString ¶
Types ¶
type Matcher ¶
type Matcher struct {
// contains filtered or unexported fields
}
func (*Matcher) ExceptUnescapedSpaces ¶
func (*Matcher) FloatValue ¶
func (*Matcher) FloatValueAdvance ¶
func (*Matcher) IntValueAdvance ¶
func (*Matcher) SpacesAdvance ¶
func (*Matcher) SpacesExceptNewline ¶
func (*Matcher) ToNewlineOrEnd ¶
func (m *Matcher) ToNewlineOrEnd()
type Scanner ¶
type Scanner struct { Start int Pos int R iorw.ReaderAt Match Matcher Reverse bool // read direction }
func NewScanner ¶
func (*Scanner) RewindOnFalse ¶
func (*Scanner) SetStartPos ¶
Click to show internal directories.
Click to hide internal directories.