regexp

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2024 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

View Source
const REGEXP object.Type = "regexp"

Variables

This section is empty.

Functions

func Compile

func Compile(ctx context.Context, args ...object.Object) object.Object

func Match

func Match(ctx context.Context, args ...object.Object) object.Object

func Module

func Module() *object.Module

Types

type Regexp added in v1.3.0

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

func NewRegexp added in v1.3.0

func NewRegexp(value *regexp.Regexp) *Regexp

func (*Regexp) Compare added in v1.3.0

func (r *Regexp) Compare(other object.Object) (int, error)

func (*Regexp) Cost added in v1.3.0

func (r *Regexp) Cost() int

func (*Regexp) Equals added in v1.3.0

func (r *Regexp) Equals(other object.Object) object.Object

func (*Regexp) GetAttr added in v1.3.0

func (r *Regexp) GetAttr(name string) (object.Object, bool)

func (*Regexp) HashKey added in v1.3.0

func (r *Regexp) HashKey() object.HashKey

func (*Regexp) Inspect added in v1.3.0

func (r *Regexp) Inspect() string

func (*Regexp) Interface added in v1.3.0

func (r *Regexp) Interface() interface{}

func (*Regexp) IsTruthy added in v1.3.0

func (r *Regexp) IsTruthy() bool

func (*Regexp) MarshalJSON added in v1.3.0

func (r *Regexp) MarshalJSON() ([]byte, error)

func (*Regexp) RunOperation added in v1.3.0

func (r *Regexp) RunOperation(opType op.BinaryOpType, right object.Object) object.Object

func (*Regexp) SetAttr added in v1.3.0

func (r *Regexp) SetAttr(name string, value object.Object) error

func (*Regexp) String added in v1.3.0

func (r *Regexp) String() string

func (*Regexp) Type added in v1.3.0

func (r *Regexp) Type() object.Type

Jump to

Keyboard shortcuts

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