syntax

package
v0.0.0-...-fab57c2 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package syntax provides a mockable wrapper for regexp/syntax.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Impl

type Impl struct{}

func (*Impl) Compile

func (*Impl) Compile(re *syntax.Regexp) (*syntax.Prog, error)

func (*Impl) EmptyOpContext

func (*Impl) EmptyOpContext(r1 rune, r2 rune) syntax.EmptyOp

func (*Impl) IsWordChar

func (*Impl) IsWordChar(r rune) bool

func (*Impl) Parse

func (*Impl) Parse(s string, flags syntax.Flags) (*syntax.Regexp, error)

type Interface

type Interface interface {
	Compile(re *syntax.Regexp) (*syntax.Prog, error)
	EmptyOpContext(r1 rune, r2 rune) syntax.EmptyOp
	IsWordChar(r rune) bool
	Parse(s string, flags syntax.Flags) (*syntax.Regexp, error)
}

Jump to

Keyboard shortcuts

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