gopher-lua: github.com/yuin/gopher-lua/pm Index | Files

package pm

import "github.com/yuin/gopher-lua/pm"

Lua pattern match functions for Go

Index

Package Files

pm.go

Constants

const EOS = -1

type Error Uses

type Error struct {
    Pos     int
    Message string
}

func (*Error) Error Uses

func (e *Error) Error() string

type MatchData Uses

type MatchData struct {
    // contains filtered or unexported fields
}

func Find Uses

func Find(p string, src []byte, offset, limit int) (matches []*MatchData, err error)

func (*MatchData) Capture Uses

func (st *MatchData) Capture(idx int) int

func (*MatchData) CaptureLength Uses

func (st *MatchData) CaptureLength() int

func (*MatchData) IsPosCapture Uses

func (st *MatchData) IsPosCapture(idx int) bool

Package pm imports 1 packages (graph) and is imported by 11 packages. Updated 2018-09-07. Refresh now. Tools for package owners.