Documentation
¶
Index ¶
- Constants
- func RuneCountInString(str string) int
- type Among
- type AmongF
- type Env
- func (env *Env) AssignTo() string
- func (env *Env) ByteIndexForHop(delta int32) int32
- func (env *Env) Clone() *Env
- func (env *Env) Current() string
- func (env *Env) Debug(count, lineNumber int)
- func (env *Env) EqS(s string) bool
- func (env *Env) EqSB(s string) bool
- func (env *Env) FindAmong(amongs []*Among, ctx interface{}) int32
- func (env *Env) FindAmongB(amongs []*Among, ctx interface{}) int32
- func (env *Env) InGrouping(chars []byte, min, max int32) bool
- func (env *Env) InGroupingB(chars []byte, min, max int32) bool
- func (env *Env) Insert(bra, ket int, s string)
- func (env *Env) NextChar()
- func (env *Env) OutGrouping(chars []byte, min, max int32) bool
- func (env *Env) OutGroupingB(chars []byte, min, max int32) bool
- func (env *Env) PrevChar()
- func (env *Env) ReplaceS(bra, ket int, s string) int32
- func (env *Env) SetCurrent(s string)
- func (env *Env) SliceDel() bool
- func (env *Env) SliceFrom(s string) bool
- func (env *Env) SliceTo() string
Constants ¶
View Source
const MaxInt = math.MaxInt32
View Source
const MinInt = math.MinInt32
Variables ¶
This section is empty.
Functions ¶
func RuneCountInString ¶
RuneCountInString is a wrapper around utf8.RuneCountInString this allows us to not have to conditionally include the utf8 package into some stemmers and not others
Types ¶
type Env ¶
type Env struct { Cursor int Limit int LimitBackward int Bra int Ket int // contains filtered or unexported fields }
Env represents the Snowball execution environment
func (*Env) ByteIndexForHop ¶
func (*Env) FindAmongB ¶
func (*Env) SetCurrent ¶
Click to show internal directories.
Click to hide internal directories.