infrastructure

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPatternCompiler

func NewPatternCompiler() domain.PatternCompiler

NewPatternCompiler creates a new pattern compiler

Types

type CharacterValidator

type CharacterValidator struct{}

CharacterValidator validates pattern characters

func (*CharacterValidator) Validate

func (v *CharacterValidator) Validate(pattern string) error

type LengthValidator

type LengthValidator struct{}

LengthValidator validates pattern length

func (*LengthValidator) Validate

func (v *LengthValidator) Validate(pattern string) error

type PatternValidator

type PatternValidator interface {
	Validate(pattern string) error
}

PatternValidator defines the interface for pattern validation

type SimplePatternCompiler

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

SimplePatternCompiler implements the PatternCompiler interface

func (*SimplePatternCompiler) Compile

func (c *SimplePatternCompiler) Compile(pattern string) string

Compile compiles a pattern string to Unicode block elements

func (*SimplePatternCompiler) Validate

func (c *SimplePatternCompiler) Validate(pattern string) error

Validate validates a pattern string with detailed error reporting

Jump to

Keyboard shortcuts

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