match

package
v1.6.4 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2014 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Line

type Line struct {
	Num int
	Str string
}

type Match

type Match struct {
	Matched bool
	*Line

	Befores []*Line
	Afters  []*Line
	// contains filtered or unexported fields
}

func NewMatch

func NewMatch(before, after int) *Match

func (*Match) FirstLineNum

func (self *Match) FirstLineNum() int

func (*Match) IsMatch

func (self *Match) IsMatch(pattern *pattern.Pattern, num int, s string) (*Match, bool)

func (*Match) LastLineNum

func (self *Match) LastLineNum() int

func (*Match) LineNum

func (self *Match) LineNum() int

func (*Match) Match

func (self *Match) Match() string

Jump to

Keyboard shortcuts

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