Versions in this module Expand all Collapse all v0 v0.3.0 Dec 14, 2017 v0.2.0 Dec 13, 2017 v0.2.0-unicode10.0.0 Sep 15, 2017 v0.1.0 Sep 14, 2017 Changes in this version + const Ignore + const MaxQuaternary + const PrivateUse + func MatchLang(t language.Tag, tags []language.Tag) int + type ContractTrieSet []struct + type Elem uint32 + func MakeElem(primary, secondary, tertiary int, ccc uint8) (Elem, error) + func MakeQuaternary(v int) Elem + func (ce Elem) CCC() uint8 + func (ce Elem) Mask(l Level) uint32 + func (ce Elem) Primary() int + func (ce Elem) Quaternary() int + func (ce Elem) Secondary() int + func (ce Elem) Tertiary() uint8 + func (ce Elem) Weight(l Level) int + type Iter struct + Elems []Elem + N int + Weighter Weighter + func (i *Iter) Discard() + func (i *Iter) End() int + func (i *Iter) Len() int + func (i *Iter) Next() bool + func (i *Iter) Reset(p int) + func (i *Iter) SetInput(s []byte) + func (i *Iter) SetInputString(s string) + type Level int + const Identity + const NumLevels + const Primary + const Quaternary + const Secondary + const Tertiary + type Table struct + ContractElem []uint32 + ContractTries ContractTrieSet + ExpandElem []uint32 + Index Trie + MaxContractLen int + VariableTop uint32 + func (t *Table) AppendNext(w []Elem, b []byte) (res []Elem, n int) + func (t *Table) AppendNextString(w []Elem, s string) (res []Elem, n int) + func (t *Table) Domain() []string + func (t *Table) Start(p int, b []byte) int + func (t *Table) StartString(p int, s string) int + func (t *Table) Top() uint32 + type Trie struct + Index []uint16 + Index0 []uint16 + Values []uint32 + Values0 []uint32 + type Weighter interface + AppendNext func(buf []Elem, s []byte) (ce []Elem, n int) + AppendNextString func(buf []Elem, s string) (ce []Elem, n int) + Domain func() []string + Start func(p int, b []byte) int + StartString func(p int, s string) int + Top func() uint32 + func NewNumericWeighter(w Weighter) Weighter