Documentation
¶
Overview ¶
Package alphabet provides API for manipulating with the list of defined characters
Index ¶
- type Alphabet
- func CreateAlphabet(description []string) Alphabet
- func NewCompositeAlphabet(alphabets []Alphabet) Alphabet
- func NewEnglishAlphabet() Alphabet
- func NewNumberAlphabet() Alphabet
- func NewRussianAlphabet() Alphabet
- func NewSequentialAlphabet(min, max rune) Alphabet
- func NewSimpleAlphabet(chars []rune) Alphabet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Alphabet ¶
type Alphabet interface {
// Has tells is given char exists in alphabet
Has(char rune) bool
// Size returns the size of alphabet
Size() int
// Chars returns the current set of symbols
Chars() []rune
}
Alphabet is abstract for manipulating with set of symbols
func CreateAlphabet ¶
CreateAlphabet creates alphabet from a string declaration
func NewCompositeAlphabet ¶
NewCompositeAlphabet returns new instance of compositeAlphabet
func NewEnglishAlphabet ¶
func NewEnglishAlphabet() Alphabet
NewEnglishAlphabet returns new instance of englishAlphabet
func NewNumberAlphabet ¶
func NewNumberAlphabet() Alphabet
NewNumberAlphabet returns new instance of numberAlphabet
func NewRussianAlphabet ¶
func NewRussianAlphabet() Alphabet
NewRussianAlphabet returns new instance of RussianAlphabet
func NewSequentialAlphabet ¶
NewSequentialAlphabet returns new instance of sequentialAlphabet
func NewSimpleAlphabet ¶
NewSimpleAlphabet returns new instance of SimpleAlphabet
Click to show internal directories.
Click to hide internal directories.