regexp

package
v1.7.3 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

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

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

func NewRegexp

func NewRegexp(value *regexp.Regexp) *Regexp

func (*Regexp) Compare

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

func (*Regexp) Cost

func (r *Regexp) Cost() int

func (*Regexp) Equals

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

func (*Regexp) GetAttr

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

func (*Regexp) HashKey

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

func (*Regexp) Inspect

func (r *Regexp) Inspect() string

func (*Regexp) Interface

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

func (*Regexp) IsTruthy

func (r *Regexp) IsTruthy() bool

func (*Regexp) MarshalJSON

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

func (*Regexp) RunOperation

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

func (*Regexp) SetAttr

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

func (*Regexp) String

func (r *Regexp) String() string

func (*Regexp) Type

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

Jump to

Keyboard shortcuts

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