Documentation
¶
Index ¶
- Constants
- func InChangeCharMap(c rune) bool
- func InChangeCharMapEx(c rune) bool
- func InitWordTrie(forceSpell bool, dataFiles ...string) error
- func RemoveConsonant(s string) string
- func SplitConsonantVowel(rs []rune) ([]rune, []rune)
- func SwitchCaplock(keyVal uint32) uint32
- type BT
- type CR
- type Engine
- func (pc *Engine) AddKey(key rune)
- func (pc *Engine) AddStr(s string)
- func (pc *Engine) Backspace()
- func (pc *Engine) GetCommitResult() []rune
- func (pc *Engine) GetCommitResultStr() string
- func (pc *Engine) GetRaw() []rune
- func (pc *Engine) GetRawStr() string
- func (pc *Engine) GetResult() []rune
- func (pc *Engine) GetResultStr() string
- func (pc *Engine) HasToneChar() bool
- func (pc *Engine) LenStateBack() int
- func (pc *Engine) PopStateBack() int
- func (pc *Engine) PushStateBack() int
- func (pc *Engine) RawKeyLen() int
- func (pc *Engine) Reset()
- func (pc *Engine) ResultLen() uint32
- type EngineState
- type InputMethod
- type SR
- type W
Constants ¶
View Source
const ( MaxWordLength = 15 MaxStateStack = 2 )
View Source
const ( FindResultNotMatch = iota FindResultMatchPrefix FindResultRevert FindResultMatchFull Consonant = "qwrtpsdfghjklzxcvbnmđQWRTPSDFGHJKLZXCVBNMĐ" )
Variables ¶
This section is empty.
Functions ¶
func InChangeCharMap ¶ added in v1.2.0
func InChangeCharMapEx ¶ added in v1.5.0
func InitWordTrie ¶
func RemoveConsonant ¶ added in v1.5.1
func SplitConsonantVowel ¶ added in v1.5.1
func SwitchCaplock ¶ added in v1.2.0
Types ¶
type Engine ¶
type Engine struct { EngineState InputMethod InputMethod ForceSpell bool // contains filtered or unexported fields }
func (*Engine) GetCommitResult ¶ added in v1.4.0
func (*Engine) GetCommitResultStr ¶
func (*Engine) GetResultStr ¶
func (*Engine) HasToneChar ¶
func (*Engine) LenStateBack ¶ added in v1.4.0
func (*Engine) PopStateBack ¶ added in v1.4.0
func (*Engine) PushStateBack ¶ added in v1.4.0
type EngineState ¶ added in v1.4.0
type EngineState struct {
// contains filtered or unexported fields
}
type InputMethod ¶ added in v1.2.0
type InputMethod int
const ( IMTeni InputMethod = iota << 0 IMVni InputMethod = iota IMTelex InputMethod = iota IMTelexEx InputMethod = iota )
Click to show internal directories.
Click to hide internal directories.