Versions in this module Expand all Collapse all v0 v0.2.0 Jun 12, 2019 v0.1.0 Jun 11, 2019 Changes in this version + const CLDRVersion + const UnicodeVersion + var Supported language.Coverage + type IndexOption byte + const Anchor + const Backwards + type Matcher struct + func New(t language.Tag, opts ...Option) *Matcher + func (m *Matcher) Compile(b []byte) *Pattern + func (m *Matcher) CompileString(s string) *Pattern + func (m *Matcher) Equal(a, b []byte) bool + func (m *Matcher) EqualString(a, b string) bool + func (m *Matcher) Index(b, pat []byte, opts ...IndexOption) (start, end int) + func (m *Matcher) IndexString(s, pat string, opts ...IndexOption) (start, end int) + type Option func(*Matcher) + var Exact Option = nil + var IgnoreCase Option = ignoreCase + var IgnoreDiacritics Option = ignoreDiacritics + var IgnoreWidth Option = ignoreWidth + var Loose Option = loose + var WholeWord Option = nil + type Pattern struct + func (p *Pattern) Index(b []byte, opts ...IndexOption) (start, end int) + func (p *Pattern) IndexString(s string, opts ...IndexOption) (start, end int)