Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PatternMatcher ¶
type PatternMatcher struct {
// contains filtered or unexported fields
}
PatternMatcher provides utilities for pattern matching with case sensitivity control
func NewPatternMatcher ¶
func NewPatternMatcher() *PatternMatcher
NewPatternMatcher creates a new pattern matcher that automatically reads the case-insensitive flag
func (*PatternMatcher) Contains ¶
func (pm *PatternMatcher) Contains(text, pattern string) bool
Contains checks if the text contains the pattern, respecting case sensitivity
func (*PatternMatcher) Equals ¶
func (pm *PatternMatcher) Equals(text, pattern string) bool
Equals checks if the text equals the pattern, respecting case sensitivity
func (*PatternMatcher) HasPrefix ¶
func (pm *PatternMatcher) HasPrefix(text, prefix string) bool
HasPrefix checks if the text has the prefix, respecting case sensitivity
func (*PatternMatcher) HasSuffix ¶
func (pm *PatternMatcher) HasSuffix(text, suffix string) bool
HasSuffix checks if the text has the suffix, respecting case sensitivity