Documentation ¶
Index ¶
- type BytesDAWG
- type Completer
- type CompletionDAWG
- type DAWG
- type Dictionary
- type Guide
- type IntCompletionDAWG
- type RecordDAWG
- func (d *RecordDAWG) Get(key string) ([][]uint16, bool)
- func (d *RecordDAWG) Items(prefix string) []std.StrUints16
- func (d *RecordDAWG) SimilarItems(key string, replaceChars map[rune]rune) []std.StrUints16Arr
- func (d *RecordDAWG) SimilarItemsValues(key string, replaceChars map[rune]rune) [][][]uint16
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BytesDAWG ¶
type BytesDAWG struct {
CompletionDAWG
}
BytesDAWG - DAWG that is able to transparently store extra binary payload in keys; there may be several payloads for the same key. In other words, this class implements read-only DAWG-based {unicode -> list of bytes objects} mapping.
type Completer ¶
type Completer struct {
// contains filtered or unexported fields
}
Completer ...
func NewCompleter ¶
func NewCompleter(dic *Dictionary, guide *Guide) *Completer
NewCompleter - constructor for Completer
type CompletionDAWG ¶
type CompletionDAWG struct { DAWG // contains filtered or unexported fields }
CompletionDAWG - DAWG with key completion support.
func NewCompletionDAWG ¶
func NewCompletionDAWG() *CompletionDAWG
NewCompletionDAWG - constructor for CompletionDAWG
func (*CompletionDAWG) Load ¶
func (d *CompletionDAWG) Load(path string) error
Load - Loads DAWG from a file.
type DAWG ¶
type DAWG struct {
// contains filtered or unexported fields
}
DAWG - Base DAWG wrapper.
type Dictionary ¶
type Dictionary struct {
// contains filtered or unexported fields
}
Dictionary - class for retrieval and binary I/O.
func (*Dictionary) Contains ¶
func (d *Dictionary) Contains(key []byte) bool
Contains - Exact matching.
type IntCompletionDAWG ¶
type IntCompletionDAWG struct { DAWG CompletionDAWG }
IntCompletionDAWG - Dict-like class based on DAWG. It can store integer values for unicode keys and support key completion.
func NewIntCompletionDAWG ¶
func NewIntCompletionDAWG() *IntCompletionDAWG
NewIntCompletionDAWG - constructor for IntCompletionDAWG
func (*IntCompletionDAWG) Get ¶
func (d *IntCompletionDAWG) Get(key string) (uint32, bool)
Get - Return value for the given key.
type RecordDAWG ¶
type RecordDAWG struct { BytesDAWG // contains filtered or unexported fields }
RecordDAWG ...
func NewRecordDAWG ¶
func NewRecordDAWG(fmt uint8, order binary.ByteOrder) *RecordDAWG
NewRecordDAWG - constructor for RecordDAWG
func (*RecordDAWG) Get ¶
func (d *RecordDAWG) Get(key string) ([][]uint16, bool)
Get - Returns a list of payloads (as uint16 objects) for a given key
func (*RecordDAWG) SimilarItems ¶
func (d *RecordDAWG) SimilarItems(key string, replaceChars map[rune]rune) []std.StrUints16Arr
SimilarItems - Returns a list of (key, value) tuples for all variants of 'key' in this DAWG according to 'replaces'.
func (*RecordDAWG) SimilarItemsValues ¶
func (d *RecordDAWG) SimilarItemsValues(key string, replaceChars map[rune]rune) [][][]uint16
SimilarItemsValues - Returns a list of values tuples for all variants of 'key' in this DAWG according to 'replaces'.